summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-08-28 12:38:07 +0200
committerJoey Hess <joey@gnu.kitenet.net>2009-08-28 07:32:41 -0400
commit18ddf727d1fb30e3a3022fa8a73077c4c75dd262 (patch)
tree21c95a3beb7d47ac3739e0b62cd802e20af96973 /IkiWiki/Plugin
parent8064acf87fb7e708a03e47dd82457dec237e886e (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/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm2
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;
}
}