From 18ddf727d1fb30e3a3022fa8a73077c4c75dd262 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 28 Aug 2009 12:38:07 +0200 Subject: [PATCH] po: fix interdiction to create pages of type po ... which was broken by the new page_types code. Signed-off-by: intrigeri (cherry picked from commit 1914ae2fd24e1e8021404eae847d70c710f8542d) --- IkiWiki/Plugin/po.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.26.2