mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Changing i18n entity format in CMSMenu->provideI18nEntities() to have actual class as namespace (related: r66264)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68159 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dd50c757d3
commit
9402758823
@ -226,7 +226,8 @@ class CMSMenu extends Object implements Iterator, i18nEntityProvider
|
|||||||
$entities = array();
|
$entities = array();
|
||||||
foreach($cmsClasses as $cmsClass) {
|
foreach($cmsClasses as $cmsClass) {
|
||||||
$defaultTitle = LeftAndMain::menu_title_for_class($cmsClass);
|
$defaultTitle = LeftAndMain::menu_title_for_class($cmsClass);
|
||||||
$entities['LeftAndMain.' . strtoupper($cmsClass) . '_MENU'] = array($defaultTitle, PR_HIGH, 'Menu title');
|
$ownerModule = i18n::get_owner_module($cmsClass);
|
||||||
|
$entities["{$cmsClass}.MENUTITLE"] = array($defaultTitle, PR_HIGH, 'Menu title', $ownerModule);
|
||||||
}
|
}
|
||||||
return $entities;
|
return $entities;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user