Index: branches/5.0.x/core/units/helpers/category_helper.php =================================================================== diff -u -r12446 -r12447 --- branches/5.0.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 12446) +++ branches/5.0.x/core/units/helpers/category_helper.php (.../category_helper.php) (revision 12447) @@ -1,6 +1,6 @@ Application->GetVar('m_cat_id'); if (array_key_exists('shift', $params) && $params['shift']) { @@ -39,6 +40,7 @@ } else { $home_element = $this->getHomeCategoryPath($params, $main_category_id); + unset($params['is_first']); } if (!getArrayValue($params, 'titles') && !getArrayValue($params, 'templates')) { @@ -147,6 +149,7 @@ $ret = ''; $block_params['category'] = 1; $block_params['no_editing'] = 1; + $block_params['is_first'] = $params['is_first']; $block_params['separator'] = $params['separator']; $no_current = isset($params['no_current']) && $params['no_current']; @@ -177,7 +180,12 @@ $this->Application->SetVar('c_id', $category_id); $ret .= $this->Application->ParseBlock($block_params); + + if (array_key_exists('is_first', $block_params)) { + unset($block_params['is_first']); + } } + $this->Application->SetVar('c_id', $backup_category_id); return $ret; @@ -221,8 +229,10 @@ $block_params['no_editing'] = 1; $block_params['current'] = $current_category == $block_params['cat_id'] ? 1 : 0; $block_params['separator'] = $params['separator']; + $block_params['is_first'] = $params['is_first']; $block_params['cat_name'] = $this->Application->ProcessParsedTag('m', 'RootCategoryName', $params); $block_params['name'] = $this->SelectParam($params, 'root_cat_render_as,render_as'); + return $this->Application->ParseBlock($block_params); }