summaryrefslogtreecommitdiff
path: root/libpiny/lib
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2010-12-27 01:23:57 -0800
committerJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2010-12-27 01:23:57 -0800
commit875650426369fb2607b6179883141f3adfe42359 (patch)
tree20d614b74a4996b6e4e86155265b2c425266474e /libpiny/lib
parent7bf6a597faf653358d83f6c8ca54843ffc43c782 (diff)
parent8f342b641236d9c15530664c00889d00635b61f6 (diff)
downloadpiny-code-875650426369fb2607b6179883141f3adfe42359.tar.gz
piny-code-875650426369fb2607b6179883141f3adfe42359.zip
Merge branch 'master' of piny.be:/srv/git/piny-code
Diffstat (limited to 'libpiny/lib')
-rw-r--r--libpiny/lib/Piny/Config.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm
index 1242c8f..5cd99da 100644
--- a/libpiny/lib/Piny/Config.pm
+++ b/libpiny/lib/Piny/Config.pm
@@ -85,7 +85,7 @@ sub _build__conf {
$conf = { };
};
- if ( -e "/etc/piny-default.conf" ) {
+ if ( -s "/etc/piny-default.conf" ) {
my $default = Config::Simple->new( "/etc/piny-default.conf" )->vars;
@@ -97,7 +97,7 @@ sub _build__conf {
};
- if ( -e "/etc/piny-override.conf" ) {
+ if ( -s "/etc/piny-override.conf" ) {
my $override = Config::Simple->new( "/etc/piny-override.conf" )->vars;
@@ -119,7 +119,7 @@ sub save {
croak "Can't save a Piny::Config if the confpath is not set!";
};
- if ( -e "/etc/piny-override.conf" ) {
+ if ( -s "/etc/piny-override.conf" ) {
my $override = Config::Simple->new( "/etc/piny-override.conf" )->vars;
@@ -131,7 +131,7 @@ sub save {
};
- if ( -e "/etc/piny-default.conf" ) {
+ if ( -s "/etc/piny-default.conf" ) {
my $default = Config::Simple->new( "/etc/piny-default.conf" )->vars;