// removing the "new" button on the toolbar when we are in the root category listing

This commit is contained in:
vChabot
2012-02-15 13:55:40 +00:00
parent 196cc811fe
commit 5522e117a8
@@ -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()