Index: branches/5.1.x/core/units/helpers/category_helper.php =================================================================== diff -u -N -r13955 -r13987 --- branches/5.1.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 13955) +++ branches/5.1.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 13987) @@ -1,6 +1,6 @@ Application->findModule('Name', 'Core', 'RootCat'); // 0; + $block_params['cat_id'] = $this->Application->getBaseCategory(); $block_params['no_editing'] = 1; $block_params['current'] = $current_category == $block_params['cat_id'] ? 1 : 0; $block_params['separator'] = $params['separator']; @@ -305,7 +305,7 @@ $category_data = $this->Conn->GetRow($sql); $cached_path = Array (); - $skip_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $skip_category = $this->Application->getBaseCategory(); if ($category_data) { $category_names = explode('&|&', $category_data[$navbar_field]); @@ -457,7 +457,7 @@ $language_count = $ml_helper->getLanguageCount(); - $root_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $root_category = $this->Application->getBaseCategory(); $data = $this->_getChildren($root_category, $language_count); if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { @@ -552,7 +552,7 @@ $data = $this->_getStructureTree(); $theme_id = (int)$themes_helper->getCurrentThemeId(); - $root_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $root_category = $this->Application->getBaseCategory(); $this->_primaryLanguageId = $this->Application->GetDefaultLanguageId(); $this->_structureTree = $this->_printChildren($data, $root_category, $this->Application->GetVar('m_lang'), $theme_id);