File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 61
61
* type of CMS is being used.
62
62
* (Default: NULL)
63
63
* - env: string|NULL. The environment variable which may contain the path to
64
- * civicrm.settings.php. Set NULL to disable.
64
+ * civicrm.settings.php (or the token "Auto") . Set NULL to disable environment-checking .
65
65
* (Default: CIVICRM_SETTINGS)
66
66
* - httpHost: string|NULL. For multisite, the HTTP hostname.
67
67
* - prefetch: bool. Whether to load various caches.
@@ -324,7 +324,7 @@ public function getCivicrmSettingsPhp($options) {
324
324
if (defined ('CIVICRM_CONFDIR ' ) && file_exists (CIVICRM_CONFDIR . '/civicrm.settings.php ' )) {
325
325
$ settings = CIVICRM_CONFDIR . '/civicrm.settings.php ' ;
326
326
}
327
- elseif (!empty ($ options ['env ' ]) && getenv ($ options ['env ' ]) && file_exists (getenv ($ options ['env ' ]))) {
327
+ elseif (!empty ($ options ['env ' ]) && getenv ($ options ['env ' ]) && getenv ( $ options [ ' env ' ]) !== ' Auto ' && file_exists (getenv ($ options ['env ' ]))) {
328
328
$ settings = getenv ($ options ['env ' ]);
329
329
}
330
330
elseif (!empty ($ options ['settingsFile ' ]) && file_exists ($ options ['settingsFile ' ])) {
You can’t perform that action at this time.
0 commit comments