]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
patch hidden field setting code
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index 30e3d4199cd56b26cbf69529ca8d641d1d6ac7b2..c9ba95363a8a60b49b609a59a7617f79bb22c96f 100644 (file)
@@ -63,7 +63,7 @@ sub genpage ($$) {
        my $content=shift;
        
        run_hooks(indexhtml => sub {
-               shift->(page => $page, content => $content);
+               shift->(page => $page, destpage => $page, content => $content);
        });
 
        my $templatefile;
@@ -800,8 +800,8 @@ sub refresh () {
        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) });