MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@
|
||||
$PAGE->set_url('/error/');
|
||||
$PAGE->set_title($site->fullname .':Error');
|
||||
$PAGE->set_heading($site->fullname .': Error 404');
|
||||
$PAGE->set_context(get_system_context());
|
||||
$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');
|
||||
|
||||
Reference in New Issue
Block a user