added support to change the configuration

This commit is contained in:
Steffen Vogel 2010-11-01 11:59:36 +01:00
parent f05bfcc433
commit 2fc39c8abd

View file

@ -45,10 +45,10 @@ class Configuration {
$values =& self::$values; $values =& self::$values;
$tree = explode('.', $var); $tree = explode('.', $var);
foreach ($tree as $part) { foreach ($tree as $part) {
$values =& $values[$part]; // TODO use array_merge_recursive() $values =& $values[$part];
} }
$values = $value; $values = array_merge_recursive($values, $value);
} }
/** /**
@ -144,4 +144,4 @@ EOT;
} }
} }
?> ?>