diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-02-11 22:55:35 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-02-11 22:55:35 -0500 |
commit | 8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2 (patch) | |
tree | e4bf2f17463806ad023749e626e9a884245bf603 | |
parent | 6f3641f16c0043f42212976ccba93b3cf7e4e36f (diff) | |
download | ikiwiki-8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2.tar ikiwiki-8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2.tar.gz |
fix websetup display of unsafe arrays in expert mode
-rw-r--r-- | IkiWiki/Plugin/websetup.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm index e477bcc20..76ca1c9e2 100644 --- a/IkiWiki/Plugin/websetup.pm +++ b/IkiWiki/Plugin/websetup.pm @@ -138,9 +138,9 @@ sub showfields ($$$@) { my $value=$config{$key}; - if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) { - $value=[(ref $value eq 'ARRAY' ? map { Encode::encode_utf8($_) } @{$value} : ""), - "", ""]; # blank items for expansion + if (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY') { + $value=[(ref $value eq 'ARRAY' ? map { Encode::encode_utf8($_) } @{$value} : "")]; + push @$value, "", "" if $info{safe}; # blank items for expansion } else { $value=Encode::encode_utf8($value); |