diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php index c736e18654..a6e770a547 100644 --- a/controllers/admin/AdminEmployeesController.php +++ b/controllers/admin/AdminEmployeesController.php @@ -177,7 +177,7 @@ public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_employee'] = array( 'href' => self::$currentIndex.'&addemployee&token='.$this->token, 'desc' => $this->l('Add new employee', null, null, false), diff --git a/controllers/admin/AdminImagesController.php b/controllers/admin/AdminImagesController.php index 914802c9d9..fd13096c9f 100644 --- a/controllers/admin/AdminImagesController.php +++ b/controllers/admin/AdminImagesController.php @@ -823,7 +823,7 @@ public function initMoveImages() public function initPageHeaderToolbar() { - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_image_type'] = array( 'href' => self::$currentIndex.'&addimage_type&token='.$this->token, 'desc' => $this->l('Add new image type', null, null, false), diff --git a/controllers/admin/AdminMetaController.php b/controllers/admin/AdminMetaController.php index 676bd7a64d..49e2cd99cb 100644 --- a/controllers/admin/AdminMetaController.php +++ b/controllers/admin/AdminMetaController.php @@ -229,7 +229,7 @@ public function __construct() public function initPageHeaderToolbar() { - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_meta'] = array( 'href' => self::$currentIndex.'&addmeta&token='.$this->token, 'desc' => $this->l('Add a new page', null, null, false), diff --git a/controllers/admin/AdminRequestSqlController.php b/controllers/admin/AdminRequestSqlController.php index 068face352..e8c431aa1a 100644 --- a/controllers/admin/AdminRequestSqlController.php +++ b/controllers/admin/AdminRequestSqlController.php @@ -310,7 +310,7 @@ public function initContent() public function initPageHeaderToolbar() { - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_request'] = array( 'href' => self::$currentIndex.'&addrequest_sql&token='.$this->token, 'desc' => $this->l('Add new SQL query', null, null, false), diff --git a/controllers/admin/AdminSearchConfController.php b/controllers/admin/AdminSearchConfController.php index 91efb94305..e07881d2cf 100644 --- a/controllers/admin/AdminSearchConfController.php +++ b/controllers/admin/AdminSearchConfController.php @@ -242,7 +242,7 @@ public function __construct() public function initPageHeaderToolbar() { - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_alias'] = array( 'href' => self::$currentIndex.'&addalias&token='.$this->token, 'desc' => $this->l('Add new alias', null, null, false), diff --git a/controllers/admin/AdminTaxesController.php b/controllers/admin/AdminTaxesController.php index 8a1640a199..65bf9275a7 100644 --- a/controllers/admin/AdminTaxesController.php +++ b/controllers/admin/AdminTaxesController.php @@ -117,7 +117,7 @@ public function __construct() public function initPageHeaderToolbar() { - if (empty($this->display)) { + if (empty($this->display) || $this->display == 'list') { $this->page_header_toolbar_btn['new_tax'] = array( 'href' => self::$currentIndex.'&addtax&token='.$this->token, 'desc' => $this->l('Add new tax', null, null, false),