mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Localized CMS breadcrumbs title
This commit is contained in:
parent
bb8678b087
commit
faff2c122d
@ -590,7 +590,8 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$title = self::menu_title_for_class($this->class);
|
||||
$defaultTitle = LeftAndMain::menu_title_for_class($this->class);
|
||||
$title = _t("{$this->class}.MENUTITLE", $defaultTitle);
|
||||
$items = new ArrayList(array(
|
||||
new ArrayData(array(
|
||||
'Title' => $title,
|
||||
@ -1497,4 +1498,4 @@ class LeftAndMain_HTTPResponse extends SS_HTTPResponse {
|
||||
$this->isFinished = $bool;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user