From 68c3beb43e79605848213810ee623244ced23525 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 11 Sep 2017 11:40:26 -0700 Subject: [PATCH] CRM-18231 - civicrm.settings.php.template - Fix broken `environment` example The expression `CRM_Core_BAO_Setting::DEVELOPER_PREFERENCES_NAME` does not work within `civicrm.settings.php` because the classloader has not been initialized yet. This file is just supposed to store the data needed for bootstrap. --- templates/CRM/common/civicrm.settings.php.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index b221f33f6e..e201f0294c 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -316,7 +316,7 @@ if (!defined('CIVICRM_DOMAIN_ID')) { * NB: defining a value for environment here prevents it from being set * via the browser. */ -// $civicrm_setting[CRM_Core_BAO_Setting::DEVELOPER_PREFERENCES_NAME]['environment'] = 'Production'; +// $civicrm_setting['domain']['environment'] = 'Production'; /** * Settings to enable external caching using a cache server. This is an -- 2.25.1