Fix default settings for enable_subscribers

This commit is contained in:
James Brooks 2016-06-01 11:48:59 +01:00
parent 4b41395144
commit dd26a3af34

View File

@ -314,42 +314,45 @@ EINCIDENT;
{
$defaultSettings = [
[
'name' => 'app_name',
'key' => 'app_name',
'value' => 'Cachet Demo',
], [
'name' => 'app_domain',
'key' => 'app_domain',
'value' => 'https://demo.cachethq.io',
], [
'name' => 'show_support',
'key' => 'show_support',
'value' => '1',
], [
'name' => 'app_locale',
'key' => 'app_locale',
'value' => 'en',
], [
'name' => 'app_timezone',
'key' => 'app_timezone',
'value' => 'Europe/London',
], [
'name' => 'app_incident_days',
'key' => 'app_incident_days',
'value' => '7',
], [
'name' => 'app_analytics',
'key' => 'app_analytics',
'value' => 'UA-58442674-3',
], [
'name' => 'app_analytics_gs',
'key' => 'app_analytics_gs',
'value' => 'GSN-712462-P',
], [
'name' => 'display_graphs',
'key' => 'display_graphs',
'value' => '1',
], [
'name' => 'app_about',
'key' => 'app_about',
'value' => 'This is the demo instance of [Cachet](https://cachethq.io?ref=demo). The open source status page system, for everyone. An [Alt Three](https://alt-three.com) product.',
],
], [
'key' => 'enable_subscribers',
'value' => '0',
]
];
$this->settings->clear();
foreach ($defaultSettings as $setting) {
$this->settings->set($setting['name'], $setting['value']);
$this->settings->set($setting['key'], $setting['value']);
}
}