Apply |RABBIT|'s defined warning fix for ConfigLoader
Yuval Kogman [Sun, 19 Mar 2006 14:28:17 +0000 (14:28 +0000)]
http://rabbit.us/pool/configloader_undef_warning_fix.diff

lib/Catalyst/Plugin/ConfigLoader.pm

index 0fcbc70..7761e96 100644 (file)
@@ -92,7 +92,7 @@ the file inside the app's home directory.
 sub finalize_config {\r
     my $c = shift;\r
     my $v = Data::Visitor::Callback->new(\r
-        plain_value => sub { s[^__HOME__/(.+)$][ $c->path_to($1) ]e }\r
+        plain_value => sub { s[^__HOME__/(.+)$][ $c->path_to($1) ]e if defined $_ }\r
     );\r
     $v->visit( $c->config );\r
 }\r
@@ -133,4 +133,4 @@ it under the same terms as Perl itself.
 \r
 =cut\r
 \r
-1;
\ No newline at end of file
+1;\r