Permalink
Browse files

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

…age title
  • Loading branch information...
1 parent dd99fdd commit 897995391ba3534802f6851e43f072c16e7d4b6b Rajesh Taneja committed Aug 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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');

0 comments on commit 8979953

Please sign in to comment.