Making redirects work again

This commit is contained in:
moodler 2007-03-31 02:34:06 +00:00
parent d176958817
commit bf8b3d21ba

View 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;
}