From e65b892e317d0aef70e012d6d4748f2a817a49b6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 3 Aug 2010 03:57:55 +0000 Subject: [PATCH] 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 --- code/CMSMain.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index bcc51f57..983f3f0e 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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