mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #15 from pasinter/master
Bugfix - use Form->getName() instead of deprecated Form->Name()
This commit is contained in:
commit
e14f7c26ae
@ -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…
Reference in New Issue
Block a user