mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-41418 Administration: Page context should be set before setting page title
This commit is contained in:
parent
d2aa53be1b
commit
54bc6d1955
@ -49,9 +49,9 @@
|
||||
header("Status: 404 Not Found");
|
||||
|
||||
$PAGE->set_url('/error/');
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_title($site->fullname .':Error');
|
||||
$PAGE->set_heading($site->fullname .': Error 404');
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->navbar->add('Error 404 - File not Found');
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box(get_string('pagenotexist', 'error'). '<br />'.s($requesturi), 'generalbox boxaligncenter');
|
||||
|
Loading…
x
Reference in New Issue
Block a user