From 801c533595bd5c9f0428cbc7d82d5200b3d6a023 Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Mon, 4 Jan 2016 17:46:02 -0800 Subject: [PATCH] Core.setting.php - Declare `installed` setting --- Civi/Core/SettingsManager.php | 1 + settings/Core.setting.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Civi/Core/SettingsManager.php b/Civi/Core/SettingsManager.php index 21e8447dc1..a272329898 100644 --- a/Civi/Core/SettingsManager.php +++ b/Civi/Core/SettingsManager.php @@ -334,6 +334,7 @@ class SettingsManager { switch ($entity) { case 'domain': $defaults = array( + 'installed' => FALSE, 'enable_components' => array('CiviEvent', 'CiviContribute', 'CiviMember', 'CiviMail', 'CiviReport', 'CiviPledge'), 'customFileUploadDir' => '[civicrm.files]/custom/', 'imageUploadDir' => '[civicrm.files]/persist/contribute/', diff --git a/settings/Core.setting.php b/settings/Core.setting.php index 00bbf3525e..5b5a0ca24f 100644 --- a/settings/Core.setting.php +++ b/settings/Core.setting.php @@ -294,6 +294,21 @@ return array( 'description' => NULL, 'help_text' => NULL, ), + 'installed' => array( + 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().', + 'group_name' => 'CiviCRM Preferences', + 'group' => 'core', + 'name' => 'installed', + 'type' => 'Boolean', + 'quick_form_type' => 'YesNo', + 'default' => FALSE, + 'add' => '4.7', + 'title' => 'System Installed', + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => 'A flag indicating whether this system has run a post-installation routine', + 'help_text' => NULL, + ), 'max_attachments' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', -- 2.25.1