]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20676, MDL-20678 error page fixes
authorPetr Skoda <skodak@moodle.org>
Sat, 31 Oct 2009 13:20:18 +0000 (13:20 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 31 Oct 2009 13:20:18 +0000 (13:20 +0000)
lib/outputrenderers.php

index bac96c6a5c93a2b121815aac65fa580076e0a4fc..3d8c8c40557d111f4c86c6ec4d6a1f0ef0bf60af 100644 (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();
         }