Merge branch 'w29_MDL-27464_m21_continue' of git://github.com/skodak/moodle into MOODLE_21_STABLE

This commit is contained in:
Sam Hemelryk
2011-07-25 11:03:52 +08:00
+6
View File
@@ -501,6 +501,12 @@ function get_exception_info($ex) {
}
}
// when printing an error the continue button should never link offsite
if (stripos($link, $CFG->wwwroot) === false &&
stripos($link, $CFG->httpswwwroot) === false) {
$link = $CFG->wwwroot.'/';
}
$info = new stdClass();
$info->message = $message;
$info->errorcode = $errorcode;