Index: branches/5.0.x/core/units/helpers/category_helper.php =================================================================== diff -u -r12459 -r12632 --- branches/5.0.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 12459) +++ branches/5.0.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 12632) @@ -1,6 +1,6 @@ str_repeat('-', $level).' '.$data['l'.$language_id.'_Name']); + $category_language = $data['l' . $language_id . '_Name'] ? $language_id : $this->_primaryLanguageId; + $ret = Array($parent_category_id => str_repeat('-', $level).' '.$data['l' . $category_language . '_Name']); if ($data['children']) { $level++; @@ -459,6 +467,7 @@ $theme_id = (int)$themes_helper->getCurrentThemeId(); $root_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $this->_primaryLanguageId = $this->Application->GetDefaultLanguageId(); $this->_structureTree = $this->_printChildren($data, $root_category, $this->Application->GetVar('m_lang'), $theme_id); return $this->_structureTree;