aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-08-30 15:06:58 -0400
committerJoey Hess <joey@kitenet.net>2010-08-30 15:06:58 -0400
commit4e14c5e793178eda34042e027bb01e963f1dae7b (patch)
tree3b015ed99544dccf784aa80c1aaaccddc2a9bc46
parent827710bb59d04d71bc36ef47bd5fdb66fe128b40 (diff)
downloadikiwiki-4e14c5e793178eda34042e027bb01e963f1dae7b.tar
ikiwiki-4e14c5e793178eda34042e027bb01e963f1dae7b.tar.gz
call preprocess in scan mode hooks before scan hooks
Following along with change in Render.pm
-rw-r--r--IkiWiki/Plugin/table.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/table.pm b/IkiWiki/Plugin/table.pm
index 2edd1eacd..f3c425a37 100644
--- a/IkiWiki/Plugin/table.pm
+++ b/IkiWiki/Plugin/table.pm
@@ -40,6 +40,9 @@ sub preprocess (@) {
# scan that file too.
return unless exists $params{file};
+ # Preprocess in scan-only mode.
+ IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
+
IkiWiki::run_hooks(scan => sub {
shift->(
page => $params{page},
@@ -47,9 +50,6 @@ sub preprocess (@) {
);
});
- # Preprocess in scan-only mode.
- IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
-
return;
}