Index: core/units/categories/categories_tag_processor.php =================================================================== --- core/units/categories/categories_tag_processor.php +++ core/units/categories/categories_tag_processor.php @@ -1544,6 +1544,14 @@ $item_prefix = isset($params['item_prefix']) ? $params['item_prefix'] : ''; unset($params['item_prefix']); + $default_params = array( + 'button_icon' => 'section_properties.png', + 'button_class' => 'cms-section-properties-btn', + 'button_title' => 'la_btn_SectionProperties', + ); + + $params = array_merge($default_params, $params); + if ( $item_prefix ) { $params['button_class'] = 'cms-section-properties-btn'; $edit_btn = $this->Application->ProcessParsedTag($item_prefix, 'AdminEditButton', $params) . "\n"; @@ -1747,17 +1755,8 @@ return ''; } - $object = $this->getObject($params); - /* @var $object kDBItem */ - $params['item_prefix'] = 'c'; - if ( $this->Prefix == 'st' ) { - $params['button_icon'] = 'section_properties.png'; - $params['button_class'] = 'cms-section-properties-btn'; - $params['button_title'] = 'la_btn_SectionProperties'; - } - return parent::AdminEditButton($params); }