Index: branches/5.2.x/core/kernel/managers/url_manager.php =================================================================== diff -u -N -r14921 -r15073 --- branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 14921) +++ branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 15073) @@ -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; + } } \ No newline at end of file