diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu> | 2010-07-19 00:26:48 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu> | 2010-07-19 00:26:48 -0700 |
commit | b94c9ba4b418dc6f61f9c21a7a344b17861c4954 (patch) | |
tree | e7f406097c993a67eaeb4c73c7a6678d15b29c8b /usr/src/libpiny | |
parent | 3083d36ed28fec70d4151a01830c3ae1dcdff193 (diff) | |
download | piny-code-b94c9ba4b418dc6f61f9c21a7a344b17861c4954.tar.gz piny-code-b94c9ba4b418dc6f61f9c21a7a344b17861c4954.zip |
Fix to only use the first document in the config file.
Diffstat (limited to 'usr/src/libpiny')
-rw-r--r-- | usr/src/libpiny/lib/Piny/Config.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/libpiny/lib/Piny/Config.pm b/usr/src/libpiny/lib/Piny/Config.pm index bad63a1..ddc546a 100644 --- a/usr/src/libpiny/lib/Piny/Config.pm +++ b/usr/src/libpiny/lib/Piny/Config.pm @@ -58,7 +58,7 @@ sub _build__conf { if ( -e "/etc/piny.conf" ) { my $yaml = YAML::Tiny->new; - return $yaml->read( "/etc/piny.conf" ); + return $yaml->read( "/etc/piny.conf" )->[0]; } else { return { }; }; |