From: Simon McVittie Date: Sat, 4 Jun 2011 15:50:07 +0000 (+0100) Subject: IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing X-Git-Tag: 3.20110707~16^2~2 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/6fc96d3e997c31d4ab715575a63f0128553cd047?ds=sidebyside;hp=d5a3335e15cc2203dd357e6e55fa9d15bc39a181 IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 5288abc6d..05132a8a8 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -475,8 +475,18 @@ sub find_changed ($) { $pagemtime{$page}=$stat[9]; if (isinternal($page)) { + my $content = readfile($srcfile); + # Preprocess internal page in scan-only mode. - preprocess($page, $page, readfile($srcfile), 1); + preprocess($page, $page, $content, 1); + + run_hooks(scan => sub { + shift->( + page => $page, + content => $content, + ); + }); + push @internal_changed, $file; } else {