my $content=shift;
run_hooks(indexhtml => sub {
- shift->(page => $page, content => $content);
+ shift->(page => $page, destpage => $page, content => $content);
});
my $templatefile;
render_backlinks($backlinkchanged);
remove_unrendered();
- if (@$del) {
- run_hooks(delete => sub { shift->(@$del) });
+ if (@$del || @$internal_del) {
+ run_hooks(delete => sub { shift->(@$del, @$internal_del) });
}
if (%rendered) {
run_hooks(change => sub { shift->(keys %rendered) });