aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/websetup.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-03 21:06:13 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-03 21:06:13 -0400
commit6d15912e8fa1032e6d0a33a822a667da8fff6778 (patch)
tree76d5f30d3242722129040202425b5e9b1bcd4bf3 /IkiWiki/Plugin/websetup.pm
parent4b79a43db6bf3027bc3b98d8770f98ce878035b8 (diff)
downloadikiwiki-6d15912e8fa1032e6d0a33a822a667da8fff6778.tar
ikiwiki-6d15912e8fa1032e6d0a33a822a667da8fff6778.tar.gz
work around strange problem with banned_users
Its value was being ignored. Some kind of formbuilder bug? Anyway, prefixing all keys with a section seems like a good idea generally, in case there's ever overlap.
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 8bef44925..18539f7ba 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -134,11 +134,11 @@ sub showfields ($$$@) { #{{{
}
# multiple plugins can have the same field
- my $name=defined $plugin ? $plugin.".".$key : $key;
+ my $name=defined $plugin ? $plugin.".".$key : $section.".".$key;
my $value=$config{$key};
- if ($info{safe} && (ref $config{$key} eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
+ if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
push @{$value}, "", ""; # blank items for expansion
}