MINOR Adjusted CMSMain->getRootForm() to SiteConfig API changes (from r100974)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111632 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-04 06:06:15 +00:00
parent f8f18f40aa
commit 5176cdd4f0

View File

@ -349,11 +349,11 @@ JS;
}
} elseif ($id == 0) {
$siteConfig = SiteConfig::current_site_config();
$fields = $siteConfig->getFormFields();
$fields = $siteConfig->getCMSFields();
if(Object::has_extension('SiteConfig',"Translatable")){
$fields->push(new HiddenField('Locale','', $siteConfig->Locale ));
}
$form = new Form($this, "EditForm", $fields, $siteConfig->getFormActions());
$form = new Form($this, "EditForm", $fields, $siteConfig->getCMSActions());
$form->loadDataFrom($siteConfig);
return $form;
} else {