fix undef issue

master
joey 2007-08-21 19:51:05 +00:00
parent c2c943bc25
commit 7dd6385fdb
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ sub loadplugin ($) { #{{{
return if grep { $_ eq $plugin} @{$config{disable_plugins}}; 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") { "$installdir/lib/ikiwiki") {
if (defined $dir && -x "$dir/plugins/$plugin") { if (defined $dir && -x "$dir/plugins/$plugin") {
require IkiWiki::Plugin::external; require IkiWiki::Plugin::external;