Consistent naming for root breadcrumb on page controllers (fixes #8057)

This commit is contained in:
Ingo Schommer 2012-11-29 14:43:05 +01:00
parent 3512ee82f4
commit 027a41aec7
3 changed files with 18 additions and 0 deletions

View File

@ -11,4 +11,10 @@ class CMSPageEditController extends CMSMain {
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
static $session_namespace = 'CMSMain';
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}

View File

@ -402,4 +402,10 @@ class CMSPageHistoryController extends CMSMain {
}
}
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}

View File

@ -17,4 +17,10 @@ class CMSPageSettingsController extends CMSMain {
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
}
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}