Skip to content

Commit

Permalink
error MDL-19799 Added set_url call
Browse files Browse the repository at this point in the history
  • Loading branch information
samhemelryk committed Oct 15, 2009
1 parent 8e7328a commit ed1dcb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion error/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?PHP // $Id$
<?php

require('../config.php');
require_once($CFG->libdir.'/eventslib.php');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit ed1dcb9

Please sign in to comment.