Skip to content

Commit

Permalink
Merge branch 'w29_MDL-27464_m20_continue' of git://github.com/skodak/…
Browse files Browse the repository at this point in the history
…moodle into MOODLE_20_STABLE
  • Loading branch information
Sam Hemelryk committed Jul 25, 2011
2 parents 77c9ae4 + 2011593 commit 417fdfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/setuplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 417fdfa

Please sign in to comment.