Skip to content

Commit

Permalink
MDL-20676, MDL-20678 error page fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 31, 2009
1 parent 66c81fb commit 6d92adc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,8 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
// 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();
}
Expand Down

0 comments on commit 6d92adc

Please sign in to comment.