diff --git a/error/index.php b/error/index.php index dbe2157a545..9dac9675631 100644 --- a/error/index.php +++ b/error/index.php @@ -1,4 +1,4 @@ -libdir.'/eventslib.php'); @@ -45,6 +45,7 @@ header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); + $PAGE->set_url(new moodle_url($CFG->wwwroot.'/error/')); $PAGE->set_title($site->fullname .':Error'); $PAGE->set_heading($site->fullname .': Error 404'); $PAGE->navbar->add('Error 404 - File not Found');