From c1dd676c5c0a382d979d8e44642d904b966d6e8a Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 4 Oct 2011 09:06:22 +0000 Subject: postpone warning on is_adviser to Piwigo 2.4 to avoid breaking compatibility with plugins git-svn-id: http://piwigo.org/svn/trunk@12339 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 6a7c590ab..be8962e09 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -1334,7 +1334,9 @@ function check_status($access_type, $user_status = '') */ function is_adviser() { - trigger_error('call to obsolete function is_adviser', E_USER_WARNING); + // TODO for Piwigo 2.4 : trigger a warning. We don't do it on Piwigo 2.3 + // to avoid changes for plugin contributors + // trigger_error('call to obsolete function is_adviser', E_USER_WARNING); return false; } @@ -1520,4 +1522,4 @@ SELECT COUNT(*) } } -?> \ No newline at end of file +?> -- cgit v1.2.3