From 26625716074abaf48b53188f37833b38a3dd5425 Mon Sep 17 00:00:00 2001 From: pasinter Date: Thu, 14 Jun 2012 22:54:25 +1200 Subject: [PATCH] bugfix - use $form->getName() instead of deprecated $form->Name() --- code/controller/TranslatableCMSMainExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controller/TranslatableCMSMainExtension.php b/code/controller/TranslatableCMSMainExtension.php index a07d4cd..f116069 100644 --- a/code/controller/TranslatableCMSMainExtension.php +++ b/code/controller/TranslatableCMSMainExtension.php @@ -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)); } }