CRM-18231 - civicrm.settings.php.template - Fix broken `environment` example
authorTim Otten <totten@civicrm.org>
Mon, 11 Sep 2017 18:40:26 +0000 (11:40 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 11 Sep 2017 18:46:07 +0000 (11:46 -0700)
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

index b221f33f6e3bc840e59a717bae078d212287e790..e201f0294cad5e29bff8928fb6bdda1f29477749 100644 (file)
@@ -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