// Cms title
This commit is contained in:
1 parent
582ad68875
commit
2cbf8af2b2
1 file changed
+9
-1
@@ -120,7 +120,13 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
if (!$id_cms_category)
|
||||
$id_cms_category = 1;
|
||||
|
||||
$this->page_header_toolbar_title = 'CMS';
|
||||
$cms_category = new CMSCategory($id_cms_category);
|
||||
$this->toolbar_title[] = 'CMS';
|
||||
|
||||
if ($this->display == 'edit_category')
|
||||
$this->toolbar_title[] = sprintf($this->l('Edit: %s'), $cms_category->name[$this->context->employee->id_lang]);
|
||||
else
|
||||
$this->toolbar_title[] = $cms_category->name[$this->context->employee->id_lang];
|
||||
|
||||
if ($this->display == 'list')
|
||||
{
|
||||
@@ -143,6 +149,8 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
);
|
||||
}
|
||||
|
||||
$this->page_header_toolbar_title = implode(' '.Configuration::get('PS_NAVIGATION_PIPE').' ', $this->toolbar_title);
|
||||
|
||||
if (is_array($this->page_header_toolbar_btn)
|
||||
&& $this->page_header_toolbar_btn instanceof Traversable
|
||||
|| trim($this->page_header_toolbar_title) != '')
|
||||
|
||||
Reference in new issue
Block a user