From: moodler
Date: Sat, 31 Mar 2007 02:34:06 +0000 (+0000)
Subject: Making redirects work again
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bf8b3d21ba4acff45a3a5391b62b3f8495228404;p=moodle.git
Making redirects work again
---
diff --git a/lib/weblib.php b/lib/weblib.php
index 4c4ed29744..d88dec5258 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -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 = "Error output, so disabling automatic redirect.
" . $message;
}