From dd26a3af3440e7f04249517ffbcb470d7bb7cb4e Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 1 Jun 2016 11:48:59 +0100 Subject: [PATCH] Fix default settings for enable_subscribers --- app/Console/Commands/DemoSeederCommand.php | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/app/Console/Commands/DemoSeederCommand.php b/app/Console/Commands/DemoSeederCommand.php index 0f20c4dc5..cea8b0ab9 100644 --- a/app/Console/Commands/DemoSeederCommand.php +++ b/app/Console/Commands/DemoSeederCommand.php @@ -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']); } }