Merge pull request #15 from pasinter/master

Bugfix - use Form->getName() instead of deprecated Form->Name()
This commit is contained in:
Sean Harvey 2012-06-14 14:12:48 -07:00
commit e14f7c26ae

View File

@ -38,7 +38,7 @@ class TranslatableCMSMainExtension extends Extension {
function updateEditForm(&$form) {
$siteConfig = SiteConfig::current_site_config();
if($form->Name() == 'RootForm' && Object::has_extension('SiteConfig',"Translatable")) {
if($form->getName() == 'RootForm' && Object::has_extension('SiteConfig',"Translatable")) {
$form->Fields()->push(new HiddenField('Locale','', $siteConfig->Locale));
}
}