]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix undef issue
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Aug 2007 19:51:05 +0000 (19:51 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Aug 2007 19:51:05 +0000 (19:51 +0000)
IkiWiki.pm

index b70f511757dc2f88fc6b62260004bdea60f9555b..848f1dda8079494d639dac1fd7c1748c58e187cd 100644 (file)
@@ -166,7 +166,7 @@ sub loadplugin ($) { #{{{
 
        return if grep { $_ eq $plugin} @{$config{disable_plugins}};
 
-       foreach my $dir (possibly_foolish_untaint($config{libdir}),
+       foreach my $dir (defined $config{libdir} ? possibly_foolish_untaint($config{libdir}) : undef,
                         "$installdir/lib/ikiwiki") {
                if (defined $dir && -x "$dir/plugins/$plugin") {
                        require IkiWiki::Plugin::external;