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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100974 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-03-12 03:17:44 +00:00 committed by Sam Minnee
parent 63ab9385dc
commit 3ed6e4df05

View File

@ -491,11 +491,11 @@ JS;
*/
function RootForm() {
$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);
$this->extend('updateEditForm', $form);