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

This commit is contained in:
Sam Hemelryk
2011-07-25 11:04:13 +08:00
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -1677,6 +1677,12 @@ function error ($message, $link='') {
}
}
// 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.'/';
}
if (!empty($link)) {
print_continue($link);
}
+6
View File
@@ -5841,6 +5841,12 @@ function print_error($errorcode, $module='error', $link='', $a=NULL, $extralocat
}
}
// 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.'/';
}
if (!empty($CFG->errordocroot)) {
$errordoclink = $CFG->errordocroot.'/en';
} else {