fix undef issue
parent
c2c943bc25
commit
7dd6385fdb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue