mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
9df87f3a88
commit
e65b892e31
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user