summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/websetup.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-01 13:34:00 +0100
committerintrigeri <intrigeri@boum.org>2009-01-01 13:34:00 +0100
commit5c2f6cb8935f828274511ba5ca0d92b586632740 (patch)
tree0c72d1f73c0424236a98a1d51d192ee5e0e507ae /IkiWiki/Plugin/websetup.pm
parentc3af3840a295780e0f32df398f2dc7d34653e75e (diff)
parent8202cfe19e65867d7e41339944a8d7ca6daffa22 (diff)
Merge commit 'upstream/master' into prv/po
Diffstat (limited to 'IkiWiki/Plugin/websetup.pm')
-rw-r--r--IkiWiki/Plugin/websetup.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index 66dacfde3..95d044c08 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::websetup;
use warnings;
use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
sub import {
hook(type => "getsetup", id => "websetup", call => \&getsetup);
@@ -139,7 +139,7 @@ sub showfields ($$$@) {
my $value=$config{$key};
if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
- $value=[@{$value}, "", ""]; # blank items for expansion
+ $value=[(ref $value eq 'ARRAY' ? @{$value} : ""), "", ""]; # blank items for expansion
}
if ($info{type} eq "string") {