diff options
author | Jon Dowland <jon@alcopop.org> | 2009-05-16 14:44:23 +0100 |
---|---|---|
committer | Jon Dowland <jon@alcopop.org> | 2009-05-16 14:44:23 +0100 |
commit | eba9b862b2f7d346dfffcd5576cd96fce9dd239d (patch) | |
tree | 68c7d82a0da0f70ba2c47e5d14e27482a80a6e7f /IkiWiki | |
parent | 335462c05d22defe020941d2d32b2f18e975d80c (diff) | |
download | ikiwiki-eba9b862b2f7d346dfffcd5576cd96fce9dd239d.tar ikiwiki-eba9b862b2f7d346dfffcd5576cd96fce9dd239d.tar.gz |
tidy up new page_types code
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/editpage.pm | 7 |
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]; } } |