From: intrigeri Date: Fri, 28 Aug 2009 10:38:07 +0000 (+0200) Subject: po: fix interdiction to create pages of type po X-Git-Tag: 3.1415926~10^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1914ae2fd24e1e8021404eae847d70c710f8542d;p=ikiwiki.git po: fix interdiction to create pages of type po ... which was broken by the new page_types code. Signed-off-by: intrigeri --- 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; } }