]> git.mjollnir.org Git - moodle.git/commitdiff
NOBUG: Fixed incorrect use of $OUTPUT, leading to empty page instead of an error...
authormudrd8mz <mudrd8mz>
Wed, 2 Sep 2009 22:04:32 +0000 (22:04 +0000)
committermudrd8mz <mudrd8mz>
Wed, 2 Sep 2009 22:04:32 +0000 (22:04 +0000)
lib/deprecatedlib.php

index e7d2d71ab1c838091e8d66c4fd43a4c47a2ae286..0ecc9133a9f70c35ea447c709a9ad6dcf4ae8704 100644 (file)
@@ -591,7 +591,7 @@ function error($message, $link='') {
     }
 
     list($message, $moreinfourl, $link) = prepare_error_message('notlocalisederrormessage', 'error', $link, $message);
-    $OUTPUT->fatal_error($message, $moreinfourl, $link, debug_backtrace(), null, true); // show debug warning
+    echo $OUTPUT->fatal_error($message, $moreinfourl, $link, debug_backtrace(), null, true); // show debug warning
     die;
 }