aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-12-16 08:11:59 +0000
committerSimon McVittie <smcv@debian.org>2014-12-16 08:11:59 +0000
commitf570c89214ad14df06dd2c937596793cd91402f6 (patch)
tree7d026aba9c1fc5657ebcaec3acf300fb395f0f6e
parentd9dd357eb2c62e0ec8f5192ddea678238e43c7f8 (diff)
downloadikiwiki-f570c89214ad14df06dd2c937596793cd91402f6.tar
ikiwiki-f570c89214ad14df06dd2c937596793cd91402f6.tar.gz
Fix getlibdirs when libdirs is unset
-rw-r--r--IkiWiki.pm5
-rw-r--r--doc/bugs/getlibdirs_function_failure.mdwn2
2 files changed, 6 insertions, 1 deletions
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]]