Index: trunk/core/units/general/cat_tag_processor.php =================================================================== diff -u -N -r8369 -r8385 --- trunk/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 8369) +++ trunk/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 8385) @@ -204,6 +204,25 @@ $params['cat_id'] = $object->isLoaded() ? $object->GetDBField('CategoryId') : $this->Application->GetVar('m_cat_id'); return $perm_helper->TagPermissionCheck($params, $this->getPrefixSpecial().'_HasPermission'); } + + /** + * Creates link to current category or to module root category, when current category is home + * + * @param Array $params + * @return string + */ + function SuggestItemLink($params) + { + if (!isset($params['cat_id'])) { + $params['cat_id'] = $this->Application->GetVar('m_cat_id'); + } + + if ($params['cat_id'] == 0) { + $params['cat_id'] = $this->Application->findModule('Var', $this->Prefix, 'RootCat'); + } + + return $this->Application->ProcessParsedTag('c', 'CategoryLink', $params); + } }