Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-41418 Administration: Page context should be set before setting p…

…age title
  • Loading branch information...
commit 897995391ba3534802f6851e43f072c16e7d4b6b 1 parent dd99fdd
Rajesh Taneja rajeshtaneja authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  error/index.php
2  error/index.php
View
@@ -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'). '<br />'.s($requesturi), 'generalbox boxaligncenter');
Please sign in to comment.
Something went wrong with that request. Please try again.