We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6546374 commit c37e29aCopy full SHA for c37e29a
lib/Horde/Config.php
@@ -302,7 +302,11 @@ public function getPHPConfig()
302
public function writePHPConfig($formvars, &$php = null)
303
{
304
$php = $this->generatePHPConfig($formvars);
305
- $path = $GLOBALS['registry']->get('fileroot', $this->_app) . '/config';
+ if (defined('HORDE_CONFIG_BASE')) {
306
+ $path = HORDE_CONFIG_BASE;
307
+ } else {
308
+ $path = $GLOBALS['registry']->get('fileroot', $this->_app) . '/config';
309
+ }
310
$configFile = $this->configFile();
311
if (file_exists($configFile)) {
312
if (@copy($configFile, $path . '/conf.bak.php')) {
0 commit comments