From 7dd6385fdb181aabc8ec695c1e4d248ac834545b Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 21 Aug 2007 19:51:05 +0000 Subject: [PATCH] fix undef issue --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index b70f51175..848f1dda8 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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; -- 2.26.2