]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
avoid redir loop when going to an internal page that has no permalink
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index fc5d3953d0df8697fcd122bce9a0e6445714cb2f..2bf2e336bb021d11f0cfce1970380f264f06d415 100644 (file)
@@ -62,8 +62,8 @@ sub genpage ($$) {
        my $page=shift;
        my $content=shift;
        
-       run_hooks(postscan => sub {
-               shift->(page => $page, content => $content);
+       run_hooks(indexhtml => sub {
+               shift->(page => $page, destpage => $page, content => $content);
        });
 
        my $templatefile;
@@ -138,7 +138,6 @@ sub genpage ($$) {
                title => $page eq 'index' 
                        ? $config{wikiname} 
                        : pagetitle(basename($page)),
-               ispage => 1,
                wikiname => $config{wikiname},
                content => $content,
                backlinks => $backlinks,
@@ -146,7 +145,6 @@ sub genpage ($$) {
                mtime => displaytime($pagemtime{$page}),
                ctime => displaytime($pagectime{$page}, undef, 1),
                baseurl => baseurl($page),
-               have_footer => 1,
                html5 => $config{html5},
        );
 
@@ -803,7 +801,7 @@ sub refresh () {
        remove_unrendered();
 
        if (@$del) {
-               run_hooks(delete => sub { shift->(@$del) });
+               run_hooks(delete => sub { shift->(@$del, @$internal_del) });
        }
        if (%rendered) {
                run_hooks(change => sub { shift->(keys %rendered) });