FIXED: Issue where new SiteConfig instances weren't always saved to the database

This commit is contained in:
Damian Mooyman 2012-08-16 16:30:11 +12:00
parent aca242e31c
commit 6395f9030e

View File

@ -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;
}
/**