summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-05-16 10:37:15 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-05-16 10:37:15 -0400
commit251fe8dae6e0bdf5a3d3ad4fc413b2163fecbb75 (patch)
tree92c9ad76784ea2bfd03c23e257ad4667c655c377 /IkiWiki/Plugin/editpage.pm
parentd96bedef6b65d61f05c2e204292f67b68279e7b3 (diff)
parenteba9b862b2f7d346dfffcd5576cd96fce9dd239d (diff)
Merge commit 'remotes/jmtd/friendly_markup_names'
Diffstat (limited to 'IkiWiki/Plugin/editpage.pm')
-rw-r--r--IkiWiki/Plugin/editpage.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index 0068a6b11..af42097ba 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -276,8 +276,9 @@ sub cgi_editpage ($$) {
my @page_types;
if (exists $hooks{htmlize}) {
- @page_types=grep { !/^_/ }
- keys %{$hooks{htmlize}};
+ foreach my $key (grep { !/^_/ } keys %{$hooks{htmlize}}) {
+ push @page_types, [$key, $hooks{htmlize}{$key}{longname} || $key];
+ }
}
$form->tmpl_param("page_select", 1);