fix backoffice header toolbar buttons not visible on some pages

This commit is contained in:
Shreesh Arora
2023-04-04 13:15:50 +05:30
parent 2f3f616b95
commit cfe3bab2bc
3 changed files with 11 additions and 16 deletions

View File

@@ -716,6 +716,8 @@ class AdminThemesControllerCore extends AdminController
public function initPageHeaderToolbar()
{
parent::initPageHeaderToolbar();
if (empty($this->display)) {
$this->page_header_toolbar_btn['import_theme'] = array(
'href' => self::$currentIndex.'&action=importtheme&token='.$this->token,
@@ -744,8 +746,6 @@ class AdminThemesControllerCore extends AdminController
$title = implode(' '.Configuration::get('PS_NAVIGATION_PIPE').' ', $this->toolbar_title);
$this->page_header_toolbar_title = $title;
parent::initPageHeaderToolbar();
}
private function checkParentClass($name)