// Add new root category button to page header toolbar

This commit is contained in:
Jerome Nadaud
2013-12-11 09:39:47 +01:00
parent 63a04fd2dd
commit fe8d9923f6
@@ -163,6 +163,12 @@ class AdminCategoriesControllerCore extends AdminController
parent::initPageHeaderToolbar();
if ($this->display != 'edit' && $this->display != 'add')
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))
$this->page_header_toolbar_btn['new-url'] = array(
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
'desc' => $this->l('Add new root category')
);
$this->page_header_toolbar_btn['new_category'] = array(
'href' => self::$currentIndex.'&addcategory&token='.$this->token,
'desc' => $this->l('Add new category'),
@@ -251,11 +257,6 @@ class AdminCategoriesControllerCore extends AdminController
{
if (empty($this->display))
{
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))
$this->toolbar_btn['new-url'] = array(
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
'desc' => $this->l('Add new root category')
);
$this->toolbar_btn['new'] = array(
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
'desc' => $this->l('Add New')