fix: #33454 Site config was not set in the correct order

This commit is contained in:
Andreas Steiner 2024-07-24 15:55:59 +02:00
commit 6f31664c05

View file

@ -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));
}
}
@ -177,7 +177,7 @@ class Settings implements \Iterator, \Countable
if ( isset( $this->modes[ $this->mode ] ) )
{
$modeConf = $this->buildFileName( $this->modes[ $this->mode ] );
if ( file_exists($modeConf) )
{
$this->settings = array_replace_recursive( $this->settings, require($modeConf) );