Merge branch 'master' of code.verua.online:rabe/Util-Settings
This commit is contained in:
commit
5821cb0f5b
2 changed files with 6 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ class Settings implements \Iterator, \Countable
|
|||
|
||||
// load local config without merging - we need it here for the mode
|
||||
$conf = $this->buildFileName();
|
||||
$localConf = false;
|
||||
$localConf = [];
|
||||
if (file_exists($conf)) $localConf = require($conf);
|
||||
|
||||
// if a mode was set in the constructor do not overwrite it
|
||||
|
|
@ -169,7 +169,7 @@ class Settings implements \Iterator, \Countable
|
|||
$siteConf = $this->buildFileName(self::SITE);
|
||||
if (file_exists($siteConf))
|
||||
{
|
||||
$localConf = array_replace_recursive($this->settings, require($siteConf));
|
||||
$localConf = array_replace_recursive($localConf, require($siteConf));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php return [
|
||||
'mode' => 'prod',
|
||||
'answer' => 0,
|
||||
'testFile' => 'default',
|
||||
'testFiles' => 'default',
|
||||
'testFiles2' => 'default'
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue