]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14085, add debug information to error() function,
authordongsheng <dongsheng>
Tue, 1 Apr 2008 06:31:19 +0000 (06:31 +0000)
committerdongsheng <dongsheng>
Tue, 1 Apr 2008 06:31:19 +0000 (06:31 +0000)
lib/deprecatedlib.php

index 5fa923876bd76f6aa011b247fd355460a4693218..2f49ef88df069312a0da0e04646a334f535536ee 100644 (file)
@@ -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') {