diff options
author | intrigeri <intrigeri@boum.org> | 2009-08-28 12:38:07 +0200 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-28 07:32:41 -0400 |
commit | 18ddf727d1fb30e3a3022fa8a73077c4c75dd262 (patch) | |
tree | 21c95a3beb7d47ac3739e0b62cd802e20af96973 /IkiWiki | |
parent | 8064acf87fb7e708a03e47dd82457dec237e886e (diff) |
po: fix interdiction to create pages of type po
... which was broken by the new page_types code.
Signed-off-by: intrigeri <intrigeri@boum.org>
(cherry picked from commit 1914ae2fd24e1e8021404eae847d70c710f8542d)
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 12f41f6de..b9f59f3e8 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -533,7 +533,7 @@ sub formbuilder (@) { next unless "$field" eq "type"; if ($field->type eq 'select') { # remove po from the list of types - my @types = grep { $_ ne 'po' } $field->options; + my @types = grep { $_->[0] ne 'po' } $field->options; $field->options(\@types) if @types; } } |