Index: branches/5.2.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r16313 -r16348 --- branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 16313) +++ branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 16348) @@ -1,6 +1,6 @@ Application->ConfigValue('ErrorTemplate'); - $real_t = $not_found ? $not_found : 'error_notfound'; - - $themes_helper = $this->Application->recallObject('ThemesHelper'); - /* @var $themes_helper kThemesHelper */ - - $theme_id = $this->Application->GetVar('m_theme'); - $category_id = $themes_helper->getPageByTemplate($real_t, $theme_id); - $this->Application->SetVar('m_cat_id', $category_id); - - header('HTTP/1.0 404 Not Found'); + $this->Application->UrlManager->show404(); } // replace alias in form #alias_name# to actual template used in this theme