From a11effb33a7f228ccff65f5be937330ea4556438 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Wed, 24 Feb 2010 02:00:06 +0000 Subject: [PATCH] BUGFIX make siteconfig work again git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99779 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 8417f720..e459429f 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -478,7 +478,7 @@ JS; return $form; } if ($id == 0 || $id == 'root') { - $form = $this->RootForm(); + return $this->RootForm(); } else if($id) { return new Form($this, "EditForm", new FieldSet( new LabelField('PageDoesntExistLabel',_t('CMSMain.PAGENOTEXISTS',"This page doesn't exist"))), new FieldSet()); @@ -499,7 +499,7 @@ JS; $form->loadDataFrom($siteConfig); $this->extend('updateEditForm', $form); - + return $form; }