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:
Ingo Schommer 2008-12-10 07:09:50 +00:00 committed by Sam Minnee
parent dd50c757d3
commit 9402758823

View File

@ -226,7 +226,8 @@ class CMSMenu extends Object implements Iterator, i18nEntityProvider
$entities = array();
foreach($cmsClasses as $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;
}