tidy up new page_types code

master
Jon Dowland 2009-05-16 14:44:23 +01:00
parent 335462c05d
commit eba9b862b2
1 changed files with 1 additions and 6 deletions

View File

@ -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];
}
}