Index: branches/5.2.x/core/kernel/managers/url_manager.php =================================================================== diff -u -N -r16339 -r16348 --- branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 16339) +++ branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 16348) @@ -1,6 +1,6 @@ Application->GetVar('m_theme'); - } - - $not_found = $this->Application->ConfigValue('ErrorTemplate'); - $vars['t'] = $not_found ? $not_found : 'error_notfound'; - - $themes_helper = $this->Application->recallObject('ThemesHelper'); - /* @var $themes_helper kThemesHelper */ - - $vars['m_cat_id'] = $themes_helper->getPageByTemplate($vars['t'], $theme_id); - - header('HTTP/1.0 404 Not Found'); - - return $vars; - } - - /** * Show 404 page and exit * * @return void * @access public */ public function show404() { - $vars = $this->prepare404(); + header('HTTP/1.0 404 Not Found'); - foreach ($vars as $var_name => $var_value) { - $this->Application->SetVar($var_name, $var_value); - } + $not_found = $this->Application->ConfigValue('ErrorTemplate'); + $template = $not_found ? $not_found : 'error_notfound'; - // ensure parser is available (e.g. 404 page requested from event) - $this->Application->QuickRun(); + $this->Application->QuickRun($template); $this->Application->Done(); exit; } -} \ No newline at end of file +}