Index: branches/RC/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r11662 -r11682 --- branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11662) +++ branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11682) @@ -442,6 +442,13 @@ // object is used inside template parsing, so break out any parsing and return error document $error_template = $this->Application->ConfigValue('ErrorTemplate'); + + $themes_helper =& $this->Application->recallObject('ThemesHelper'); + /* @var $themes_helper kThemesHelper */ + + $this->Application->SetVar('t', $error_template); + $this->Application->SetVar('m_cat_id', $themes_helper->getPageByTemplate($error_template)); + $this->Application->HTML = $this->Application->ParseBlock( Array ('name' => $error_template) ); $this->Application->Done(); exit;