mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Use multi-level style configs
This commit is contained in:
parent
ff1940cdc5
commit
efbf92b012
@ -101,7 +101,7 @@ abstract class AbstractStyle
|
|||||||
// cache the result.
|
// cache the result.
|
||||||
$loaded_config = $this->getConfigParser()->parse(file_get_contents($config_file));
|
$loaded_config = $this->getConfigParser()->parse(file_get_contents($config_file));
|
||||||
$default_config = $this->getDefaultConfigurations();
|
$default_config = $this->getDefaultConfigurations();
|
||||||
$this->cachedConfigurations = $loaded_config + $default_config;
|
$this->cachedConfigurations = array_replace_recursive($default_config, $loaded_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->cachedConfigurations;
|
return $this->cachedConfigurations;
|
||||||
|
Loading…
Reference in New Issue
Block a user