Run the preprocess hooks in scan mode *before* the scan hooks.

master
intrigeri 2010-08-02 13:39:06 +02:00
parent 46a997db16
commit a3624aba40
1 changed files with 3 additions and 3 deletions

View File

@ -174,15 +174,15 @@ sub scan ($) {
}
delete $typedlinks{$page};
# Preprocess in scan-only mode.
preprocess($page, $page, $content, 1);
run_hooks(scan => sub {
shift->(
page => $page,
content => $content,
);
});
# Preprocess in scan-only mode.
preprocess($page, $page, $content, 1);
}
else {
will_render($file, $file, 1);