]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
move recentchanges link enabling into a pagetemplate hook
[ikiwiki.git] / IkiWiki / Render.pm
index b5b461499d1a1f9324d1c9a68c9644f72f246eca..6dc70beb5bfd2f81de8a4241946280c20daf56d6 100644 (file)
@@ -85,11 +85,6 @@ sub genpage ($$) { #{{{
                $actions++;
        }
                
-       if ($config{rcs}) {
-               $template->param(recentchangesurl => urlto("recentchanges", $page));
-               $actions++;
-       }
-
        if (length $config{historyurl}) {
                my $u=$config{historyurl};
                $u=~s/\[\[file\]\]/$pagesources{$page}/g;
@@ -376,6 +371,8 @@ sub refresh () { #{{{
                        $pagemtime{$page}=$mtime;
                        if (isinternal($page)) {
                                push @internal, $file;
+                               # Preprocess internal page in scan-only mode.
+                               preprocess($page, $page, readfile(srcfile($file)), 1);
                        }
                        else {
                                push @needsbuild, $file;