Index: trunk/kernel/units/categories/categories_tag_processor.php =================================================================== diff -u -r1566 -r1910 --- trunk/kernel/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 1566) +++ trunk/kernel/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 1910) @@ -142,7 +142,7 @@ { $block_params['name'] = $this->SelectParam($params,'render_as,block'); - $cat_object = $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List' ); + $cat_object = &$this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List' ); $sql = 'SELECT CategoryId, ParentId, Name FROM '.$cat_object->TableName.' WHERE CategoryId='.$params['cat_id']; $res = $this->Conn->GetRow($sql); @@ -170,6 +170,15 @@ } } + function CurrentCategoryName($params){ + + $cat_object = &$this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List' ); + $cat_id = $this->Application->GetVar("m_cat_id"); + $sql = 'SELECT Name FROM '.$cat_object->TableName.' WHERE CategoryId='.$cat_id; + return $this->Conn->GetOne($sql); + + } + function InitMainPrefix($params) { if($main_prefix = $this->Application->GetVar('main_prefix'))