summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/editpage.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index eb6a7bbcb..af42097ba 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -277,12 +277,7 @@ sub cgi_editpage ($$) {
my @page_types;
if (exists $hooks{htmlize}) {
foreach my $key (grep { !/^_/ } keys %{$hooks{htmlize}}) {
- my $pluginref = ${$hooks{htmlize}}{$key};
- if(${$pluginref}{'longname'}) {
- push @page_types, [$key, ${$pluginref}{'longname'}];
- } else {
- push @page_types, [$key, $key];
- }
+ push @page_types, [$key, $hooks{htmlize}{$key}{longname} || $key];
}
}