Index: trunk/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r5212 -r5214 --- trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 5212) +++ trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 5214) @@ -137,10 +137,8 @@ else { $block_params['name'] = $this->SelectParam($params,'render_as,block'); - - $title_field = $this->Application->getUnitOption($this->Prefix, 'TitleField'); // $cat_object = &$this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List' ); - $sql = 'SELECT CategoryId, ParentId, '.$title_field.' AS Name + $sql = 'SELECT CategoryId, ParentId, '.$this->getTitleField().' AS Name FROM '.$this->Application->getUnitOption($this->Prefix, 'TableName').' WHERE CategoryId = '.$params['cat_id']; $res = $this->Conn->GetRow($sql); @@ -176,12 +174,18 @@ function CurrentCategoryName($params) { $cat_object =& $this->Application->recallObject($this->getPrefixSpecial(), $this->Prefix.'_List'); - $sql = 'SELECT '.$this->Application->getUnitOption($this->Prefix, 'TitleField').' + $sql = 'SELECT '.$this->getTitleField().' FROM '.$cat_object->TableName.' WHERE CategoryId = '.$this->Application->GetVar('m_cat_id'); return $this->Conn->GetOne($sql); } + function getTitleField() + { + $ml_formatter =& $this->Application->recallObject('kMultiLanguage'); + return $ml_formatter->LangFieldName('Name'); + } + function CategoryLink($params) { // 'p_id'=>'0', ??