Index: branches/5.2.x/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r14244 -r14474 --- branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 14244) +++ branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 14474) @@ -1,6 +1,6 @@ Application->HREF($object->GetDBField('NamedParentPath'), '_FRONT_END_', $url_params); } + function DirectLink($params) + { + $object =& $this->getObject($params); + + $themes_helper =& $this->Application->recallObject('ThemesHelper'); + /* @var $themes_helper kThemesHelper */ + + $url_params = Array ( + 'm_cat_id' => $object->GetID(), + 'm_theme' => $themes_helper->getCurrentThemeId(), + 'pass' => 'm', + 'index_file' => 'index.php', + 'authkey' => $object->GetDBField('DirectLinkAuthKey'), + ); + + if ($this->Application->ConfigValue('UseModRewrite')) { + $url_params['__MOD_REWRITE__'] = 1; + } + + return $this->Application->HREF($object->GetDBField('NamedParentPath'), '_FRONT_END_', $url_params); + } + /** * Builds link to cms page (used?) *