diff --git a/IkiWiki.pm b/IkiWiki.pm index 41baa6613..7afd57993 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -569,7 +569,10 @@ sub getsetup () { } sub getlibdirs () { - my @libdirs = @{$config{libdirs}}; + my @libdirs; + if ($config{libdirs}) { + @libdirs = @{$config{libdirs}}; + } if (length $config{libdir}) { push @libdirs, $config{libdir}; } diff --git a/doc/bugs/getlibdirs_function_failure.mdwn b/doc/bugs/getlibdirs_function_failure.mdwn index 68d432633..ac909f724 100644 --- a/doc/bugs/getlibdirs_function_failure.mdwn +++ b/doc/bugs/getlibdirs_function_failure.mdwn @@ -11,3 +11,5 @@ This error is triggered when $config{libdirs} is undefined; it didn't happen in A simple patch would be to alter that line to this: my @libdirs = $config{libdirs} ? @{$config{libdirs}} : (); + +> [[Fixed|done]], sorry about that --[[smcv]]