From 5522e117a8f9b0b96ec70dbb0f7c8535d4b45785 Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 15 Feb 2012 13:55:40 +0000 Subject: [PATCH] // removing the "new" button on the toolbar when we are in the root category listing --- controllers/admin/AdminCategoriesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 02626beb9..63b89c1b3 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -239,6 +239,8 @@ class AdminCategoriesControllerCore extends AdminController 'desc' => $this->l('Add new') ); parent::initToolbar(); + if ($this->_category->id == Category::getTopCategory()->id && isset($this->toolbar_btn['new'])) + unset($this->toolbar_btn['new']); } public function initProcess()