mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIXED: Issue where new SiteConfig instances weren't always saved to the database
This commit is contained in:
parent
aca242e31c
commit
6395f9030e
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user