tidy up new page_types code
parent
335462c05d
commit
eba9b862b2
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue