From fe8d9923f67930a83404b558aa328b87a57ec713 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Wed, 11 Dec 2013 09:39:47 +0100 Subject: [PATCH] // Add new root category button to page header toolbar --- controllers/admin/AdminCategoriesController.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 784624433..04a673f52 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -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')