diff --git a/error/index.php b/error/index.php index 6798a48f475..b3655c1d9c9 100644 --- a/error/index.php +++ b/error/index.php @@ -49,9 +49,9 @@ header("Status: 404 Not Found"); $PAGE->set_url('/error/'); + $PAGE->set_context(get_system_context()); $PAGE->set_title($site->fullname .':Error'); $PAGE->set_heading($site->fullname .': Error 404'); - $PAGE->set_context(get_system_context()); $PAGE->navbar->add('Error 404 - File not Found'); echo $OUTPUT->header(); echo $OUTPUT->box(get_string('pagenotexist', 'error'). '
'.s($requesturi), 'generalbox boxaligncenter');