Skip to content

Commit

Permalink
Consistent naming for root breadcrumb on page controllers (fixes #8057)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Nov 29, 2012
1 parent 3512ee8 commit 027a41a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/controllers/CMSPageEditController.php
Expand Up @@ -11,4 +11,10 @@ class CMSPageEditController extends CMSMain {
static $required_permission_codes = 'CMS_ACCESS_CMSMain'; static $required_permission_codes = 'CMS_ACCESS_CMSMain';
static $session_namespace = 'CMSMain'; static $session_namespace = 'CMSMain';


public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}

} }
6 changes: 6 additions & 0 deletions code/controllers/CMSPageHistoryController.php
Expand Up @@ -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;
}

} }
6 changes: 6 additions & 0 deletions code/controllers/CMSPageSettingsController.php
Expand Up @@ -17,4 +17,10 @@ public function getEditForm($id = null, $fields = null) {
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : 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

@clarkepaul
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers, Ingo

Please sign in to comment.