mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'w29_MDL-27464_m22_continue' of git://github.com/skodak/moodle
This commit is contained in:
commit
9192b4537c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user