mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 15:10:05 +01:00
MDL-20676, MDL-20678 error page fixes
This commit is contained in:
parent
66c81fbfe0
commit
6d92adcb2b
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user