fix: #33454 Site config was not set in the correct order
This commit is contained in:
parent
942f8a4bde
commit
6f31664c05
1 changed files with 2 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ class Settings implements \Iterator, \Countable
|
||||||
$siteConf = $this->buildFileName(self::SITE);
|
$siteConf = $this->buildFileName(self::SITE);
|
||||||
if (file_exists($siteConf))
|
if (file_exists($siteConf))
|
||||||
{
|
{
|
||||||
$localConf = array_replace_recursive($this->settings, require($siteConf));
|
$localConf = array_replace_recursive($localConf, require($siteConf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -177,7 +177,7 @@ class Settings implements \Iterator, \Countable
|
||||||
if ( isset( $this->modes[ $this->mode ] ) )
|
if ( isset( $this->modes[ $this->mode ] ) )
|
||||||
{
|
{
|
||||||
$modeConf = $this->buildFileName( $this->modes[ $this->mode ] );
|
$modeConf = $this->buildFileName( $this->modes[ $this->mode ] );
|
||||||
|
|
||||||
if ( file_exists($modeConf) )
|
if ( file_exists($modeConf) )
|
||||||
{
|
{
|
||||||
$this->settings = array_replace_recursive( $this->settings, require($modeConf) );
|
$this->settings = array_replace_recursive( $this->settings, require($modeConf) );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue