mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Make config yaml fragments merge following the same rules as other config sources
This commit is contained in:
parent
aaf91154a2
commit
18ddae3375
@ -485,12 +485,7 @@ class SS_ConfigManifest {
|
|||||||
*/
|
*/
|
||||||
function mergeInYamlFragment(&$into, $fragment) {
|
function mergeInYamlFragment(&$into, $fragment) {
|
||||||
foreach ($fragment as $k => $v) {
|
foreach ($fragment as $k => $v) {
|
||||||
if (is_array($v) || is_object($v)) {
|
Config::merge_high_into_low($into[$k], $v);
|
||||||
if (isset($into[$k])) { $sub = $into[$k]; $this->mergeInYamlFragment($sub, $v); $into[$k] = $sub; }
|
|
||||||
else $into[$k] = $v;
|
|
||||||
}
|
|
||||||
else if (is_numeric($k)) $into[] = $v;
|
|
||||||
else $into[$k] = $v;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user