mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
bugfix - use $form->getName() instead of deprecated $form->Name()
This commit is contained in:
parent
610874755c
commit
2662571607
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user