]> sipb.mit.edu Git - ikiwiki.git/commitdiff
work around strange problem with banned_users
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 4 Aug 2008 01:06:13 +0000 (21:06 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 4 Aug 2008 01:06:13 +0000 (21:06 -0400)
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.

IkiWiki/Plugin/websetup.pm

index 8bef44925c13e81e0afd0083e36687b117b04e06..18539f7ba1a8c5444ebcb743fe970337ece46b41 100644 (file)
@@ -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
                }