MDL-14085, add debug information to error() function,

This commit is contained in:
dongsheng
2008-04-01 06:31:19 +00:00
parent aefceabe78
commit e3105d45ce
+1
View 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') {