]> git.mjollnir.org Git - moodle.git/commitdiff
error MDL-19799 Added set_url call
authorsamhemelryk <samhemelryk>
Thu, 15 Oct 2009 03:22:26 +0000 (03:22 +0000)
committersamhemelryk <samhemelryk>
Thu, 15 Oct 2009 03:22:26 +0000 (03:22 +0000)
error/index.php

index dbe2157a54534be034102ef4a58b278cc76a3cae..9dac9675631b2823358ba8e6c676f95eeb3215f6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
     require('../config.php');
     require_once($CFG->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');