From 6395f9030ed65b24494842ce74864ff7ebbf6c5e Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 16 Aug 2012 16:30:11 +1200 Subject: [PATCH] FIXED: Issue where new SiteConfig instances weren't always saved to the database --- code/model/SiteConfig.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/model/SiteConfig.php b/code/model/SiteConfig.php index 266d7a68..65a60e02 100644 --- a/code/model/SiteConfig.php +++ b/code/model/SiteConfig.php @@ -184,7 +184,9 @@ class SiteConfig extends DataObject implements PermissionProvider { * @return SiteConfig */ static function make_site_config() { - return SiteConfig::create(); + $config = SiteConfig::create(); + $config->write(); + return $config; } /**