From: dongsheng Date: Tue, 1 Apr 2008 06:31:19 +0000 (+0000) Subject: MDL-14085, add debug information to error() function, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e3105d45ce27fcf29811c8e61c02fbf8a2aa354e;p=moodle.git MDL-14085, add debug information to error() function, --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 5fa923876b..2f49ef88df 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -1629,6 +1629,7 @@ function document_file($file, $include=true) { function error ($message, $link='') { global $CFG, $SESSION, $THEME; + debugging('error() is a deprecated function, please call print_error() instead of error()', DEBUG_DEVELOPER); $message = clean_text($message); // In case nasties are in here if (defined('FULLME') && FULLME == 'cron') {