]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
Run the preprocess hooks in scan mode *before* the scan hooks.
[ikiwiki.git] / IkiWiki / Render.pm
index 5ce802317f68d3da036aa1894708f97f92152186..9921915b49ddd96a4ce2970653d205d99a568b1a 100644 (file)
@@ -174,23 +174,15 @@ sub scan ($) {
                }
                delete $typedlinks{$page};
 
-               run_hooks(scan => sub {
-                       shift->(
-                               page => $page,
-                               content => $content,
-                       );
-               });
-
                # Preprocess in scan-only mode.
                preprocess($page, $page, $content, 1);
 
-               run_hooks(rescan => sub {
+               run_hooks(scan => sub {
                        shift->(
                                page => $page,
                                content => $content,
                        );
                });
-
        }
        else {
                will_render($file, $file, 1);