From fc003bb63903c9b04c39450112cfddd700520aab Mon Sep 17 00:00:00 2001 From: dongsheng Date: Tue, 1 Apr 2008 16:07:17 +0000 Subject: [PATCH] MDL-14126, cron shouldn't print html tags, merged from MOODLE_19_STABLE --- lib/weblib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index f29466c52d..6cfd6be439 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5694,17 +5694,17 @@ function print_error ($errorcode, $module='', $link='', $a=NULL) { $errordocroot = 'http://docs.moodle.org'; } - $message = clean_text('

'.get_string($errorcode, $module, $a).'

'. - '

'. - ''. - get_string('moreinformation').'

'); - if (defined('FULLME') && FULLME == 'cron') { // Errors in cron should be mtrace'd. mtrace($message); die; } + $message = clean_text('

'.get_string($errorcode, $module, $a).'

'. + '

'. + ''. + get_string('moreinformation').'

'); + if (! defined('HEADER_PRINTED')) { //header not yet printed @header('HTTP/1.0 404 Not Found'); -- 2.39.5