Ignore lists in site config

This commit is contained in:
Matthias Schiffer 2013-09-30 17:13:13 +02:00
parent 60095e2a04
commit 31da712536

View File

@ -12,10 +12,10 @@ sub add_config {
foreach my $key (keys $c) { foreach my $key (keys $c) {
my $val = $c->{$key}; my $val = $c->{$key};
if (ref($val)) { if (ref($val) eq 'HASH') {
add_config($key . '.', $val); add_config($key . '.', $val);
} }
else { unless (ref($val)) {
$config{'@' . $prefix . $key . '@'} = $val; $config{'@' . $prefix . $key . '@'} = $val;
} }
} }