diff --git a/lib/setuplib.php b/lib/setuplib.php index c6fb526eb74..d0bce1fb5c9 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -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;