Index: branches/5.1.x/core/kernel/db/cat_tag_processor.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/kernel/db/cat_tag_processor.php (.../cat_tag_processor.php) (revision 12657) +++ branches/5.1.x/core/kernel/db/cat_tag_processor.php (.../cat_tag_processor.php) (revision 13086) @@ -1,6 +1,6 @@ Application->recallObject('ThemesHelper'); /* @var $themes_helper kThemesHelper */ + $site_config_helper =& $this->Application->recallObject('SiteConfigHelper'); + /* @var $site_config_helper SiteConfigHelper */ + + $settings = $site_config_helper->getSettings(); + + $params['editing_mode'] = $settings['default_editing_mode']; $params['m_theme'] = $themes_helper->getCurrentThemeId(); - $params['index_file'] = '../index.php'; + $params['index_file'] = 'index.php'; + $params['prefix'] = '_FRONT_END_'; $params['admin'] = 1; + if ($this->Application->ConfigValue('UseModRewrite')) { + $params['__MOD_REWRITE__'] = 1; + } + return $this->ItemLink($params); } function CategoryPath($params) { - if ($this->Application->IsAdmin()) { + if ($this->Application->isAdminUser) { // path for module root category in admin if (!isset($params['cat_id'])) { $params['cat_id'] = $this->Application->RecallVar($params['session_var'], 0);