Merge branch 'MDL-35973_redirect' of https://github.com/andyjdavis/moodle

This commit is contained in:
Sam Hemelryk 2014-01-06 11:28:34 +13:00
commit a9bd004c8c
2 changed files with 2 additions and 1 deletions

View file

@ -2550,6 +2550,7 @@ function redirect($url, $message='', $delay=-1) {
if ($PAGE) {
$PAGE->set_context(null);
$PAGE->set_pagelayout('redirect'); // No header and footer needed.
$PAGE->set_title(get_string('pageshouldredirect', 'moodle'));
}
if ($url instanceof moodle_url) {