diff options
Diffstat (limited to 'libpiny')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index 4df09ba..64a8d18 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -163,11 +163,11 @@ sub save { foreach my $key ( keys %{$s->_conf} ) { if ( exists $override->{$key} ) { - delete $s->_conf->{$key}; + delete $s->_conf->{$key} if $key =~ /^piny\./; } elsif ( exists $userconf->{$key} ) { delete $s->_conf->{$key} if $userconf->{$key} eq $s->_conf->{$key}; } elsif ( exists $default->{$key} ) { - delete $s->_conf->{$key} if $default->{$key} eq $s->_conf->{$key}; + delete $s->_conf->{$key} if $key =~ /^piny\./ and $default->{$key} eq $s->_conf->{$key}; }; }; |