projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
po: fix interdiction to create pages of type po
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
po.pm
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 12f41f6de2d73c30ac543536d4940e49c0ae9a0a..b9f59f3e8c84bebcc7c79829f03c48036bd4d3e2 100644
(file)
--- 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;
}
}