Skip to content

Commit 417fdfa

Browse files
author
Sam Hemelryk
committed
Merge branch 'w29_MDL-27464_m20_continue' of git://github.com/skodak/moodle into MOODLE_20_STABLE
2 parents 77c9ae4 + 2011593 commit 417fdfa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/setuplib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,12 @@ function get_exception_info($ex) {
501501
}
502502
}
503503

504+
// when printing an error the continue button should never link offsite
505+
if (stripos($link, $CFG->wwwroot) === false &&
506+
stripos($link, $CFG->httpswwwroot) === false) {
507+
$link = $CFG->wwwroot.'/';
508+
}
509+
504510
$info = new stdClass();
505511
$info->message = $message;
506512
$info->errorcode = $errorcode;

0 commit comments

Comments
 (0)