Index: branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php =================================================================== diff -u -r5715 -r5721 --- branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 5715) +++ branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 5721) @@ -23,6 +23,23 @@ return isset($icons[$value]) ? $icons[$value] : $icons['default']; } + function ItemLink($params) + { + // 'p_id'=>'0', ?? + $params = array_merge($params, array('pass'=>'m,'.$this->Prefix)); + $item_id = getArrayValue($params,$this->Prefix.'_id'); + if (!$item_id) { + $item_id = $this->Application->GetVar($this->Prefix.'_id'); + } + $params[$this->Prefix.'_id'] = $item_id; + + $item =& $this->Application->recallObject($this->getPrefixSpecial()); + $params['m_cat_id'] = $item->GetDBField('CategoryId'); + + $main_processor =& $this->Application->recallObject('m_TagProcessor'); + return $main_processor->T($params); + } + /** * Returns path where exported category items should be saved * @@ -48,7 +65,7 @@ if (!isset($params['cat_id'])) { $params['cat_id'] = $this->Application->RecallVar($params['session_var'], 0); } - + return $this->Application->ProcessParsedTag('c', 'CategoryPath', $params); } @@ -125,7 +142,7 @@ $review_tag_processor =& $this->Application->recallObject('rev.item_TagProcessor'); return $review_tag_processor->TotalRecords($params); } - + function InitCatalogTab($params) { $tab_special = $this->Application->GetVar('tab_special');