MDL-20676, MDL-20678 error page fixes

This commit is contained in:
Petr Skoda 2009-10-31 13:20:18 +00:00
parent 66c81fbfe0
commit 6d92adcb2b

View File

@ -1941,6 +1941,8 @@ class moodle_core_renderer extends moodle_renderer_base {
// can not be used from command line or when outputting custom XML
@header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
}
$this->page->set_url(''); // no url
//$this->page->set_generaltype('form'); //TODO: MDL-20676 blocks on error pages are weird, unfortunately it somehow detect the geenralpagetype from URL :-(
$this->page->set_title(get_string('error'));
$output .= $this->header();
}