mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
core MDL-19799 Updated print_header and build_navigation to OUTPUT and PAGE equivalents
This commit is contained in:
parent
b87573d7ae
commit
70f25518ad
5 changed files with 15 additions and 6 deletions
|
@ -45,8 +45,10 @@
|
|||
header("HTTP/1.0 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
|
||||
print_header($site->fullname .':Error', $site->fullname .': Error 404', 'Error 404 - File not Found', '');
|
||||
|
||||
$PAGE->set_title($site->fullname .':Error');
|
||||
$PAGE->set_heading($site->fullname .': Error 404');
|
||||
$PAGE->navbar->add('Error 404 - File not Found');
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box(get_string('pagenotexist', 'error'). '<br />'.s($requesturi), 'generalbox boxaligncenter');
|
||||
|
||||
if (isloggedin()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue