fixed json error reporting problem

This commit is contained in:
Petr Skoda 2010-09-17 08:02:32 +00:00
parent e1a5a9cccb
commit 79beb849bd

View file

@ -2656,7 +2656,7 @@ class core_renderer_ajax extends core_renderer {
* @return string A template fragment for a fatal error
*/
public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginfo = null) {
global $FULLME, $USER;
global $CFG;
$this->page->set_context(null); // ugly hack - make sure page context is set to something, we do not want bogus warnings here