summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-08-28 12:38:07 +0200
committerintrigeri <intrigeri@boum.org>2009-08-28 12:38:07 +0200
commit1914ae2fd24e1e8021404eae847d70c710f8542d (patch)
tree5c17ef470464e9ccad8645ed7dfa62c4952851d9
parent588b8951d37a4ef737edf3e36e0e8ae6c9a51f38 (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>
-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;
}
}