Permalink
Browse files

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

  • Loading branch information...
1 parent 3512ee8 commit 027a41aec7c78b6cc599a03ee564cc9897f3c56d @chillu chillu committed Nov 29, 2012
@@ -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;
+ }
+
}
@@ -402,4 +402,10 @@ public function CompareVersionsForm($versionID, $otherVersionID) {
}
}
+ public function Breadcrumbs($unlinked = false) {
+ $crumbs = parent::Breadcrumbs($unlinked);
+ $crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
+ return $crumbs;
+ }
+
}
@@ -17,4 +17,10 @@ public function getEditForm($id = null, $fields = null) {
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;
+ }
+
}

1 comment on commit 027a41a

Member

clarkepaul commented on 027a41a Nov 29, 2012

Cheers, Ingo

Please sign in to comment.