Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

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