]> git.mjollnir.org Git - moodle.git/commitdiff
Making redirects work again
authormoodler <moodler>
Sat, 31 Mar 2007 02:34:06 +0000 (02:34 +0000)
committermoodler <moodler>
Sat, 31 Mar 2007 02:34:06 +0000 (02:34 +0000)
lib/weblib.php

index 4c4ed297447d05c356d0977039e4a5602d9c5f4b..d88dec5258d41abca396d064899105ccf51deec7 100644 (file)
@@ -5009,7 +5009,7 @@ function redirect($url, $message='', $delay=-1, $adminroot = '') {
 
 /// At developer debug level. Don't redirect if errors have been printed on screen.
     $errorprinted = false;
-    if (debugging('', DEBUG_DEVELOPER) && $CFG->debugdisplay /* && error_get_last()*/) {
+    if (debugging('', DEBUG_DEVELOPER) && $CFG->debugdisplay && false /* && error_get_last()*/) {
         $errorprinted = true;
         $message = "<strong>Error output, so disabling automatic redirect.</strong></p><p>" . $message;
     }