From e3105d45ce27fcf29811c8e61c02fbf8a2aa354e Mon Sep 17 00:00:00 2001 From: dongsheng Date: Tue, 1 Apr 2008 06:31:19 +0000 Subject: [PATCH] MDL-14085, add debug information to error() function, --- lib/deprecatedlib.php | 1 + 1 file changed, 1 insertion(+) 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') { -- 2.39.5