From 027a41aec7c78b6cc599a03ee564cc9897f3c56d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 29 Nov 2012 14:43:05 +0100 Subject: [PATCH] Consistent naming for root breadcrumb on page controllers (fixes #8057) --- code/controllers/CMSPageEditController.php | 6 ++++++ code/controllers/CMSPageHistoryController.php | 6 ++++++ code/controllers/CMSPageSettingsController.php | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/code/controllers/CMSPageEditController.php b/code/controllers/CMSPageEditController.php index 05df5f2d..c2258844 100644 --- a/code/controllers/CMSPageEditController.php +++ b/code/controllers/CMSPageEditController.php @@ -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; + } + } diff --git a/code/controllers/CMSPageHistoryController.php b/code/controllers/CMSPageHistoryController.php index 846df975..1008b524 100644 --- a/code/controllers/CMSPageHistoryController.php +++ b/code/controllers/CMSPageHistoryController.php @@ -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; + } + } diff --git a/code/controllers/CMSPageSettingsController.php b/code/controllers/CMSPageSettingsController.php index 02f9da3a..9c7c4548 100644 --- a/code/controllers/CMSPageSettingsController.php +++ b/code/controllers/CMSPageSettingsController.php @@ -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; + } + }