MINOR Don't use FormResponse in CMSMain::save_siteconfig()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@108833 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-08-03 03:57:55 +00:00
parent 9df87f3a88
commit e65b892e31

View File

@ -259,9 +259,10 @@ JS;
$siteConfig = SiteConfig::current_site_config();
$form->saveInto($siteConfig);
$siteConfig->write();
FormResponse::status_message('Saved site configuration', "good");
FormResponse::add("$('Form_EditForm').resetElements();");
return FormResponse::respond();
$this->response->addHeader('X-Status', _t('LeftAndMain.SAVEDUP'));
return $form->formHtmlContent();
}
/**
* Get a database record to be managed by the CMS