summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/template.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-03-09 00:32:10 +0100
committerintrigeri <intrigeri@boum.org>2009-03-09 00:32:10 +0100
commitf4a1732b0e65ea4459098e4e852dff10a5af9320 (patch)
tree60b8cf4b1677504cb86f301bb62a33cc769fafd9 /IkiWiki/Plugin/template.pm
parentcc5be82b8b7cfe3b679d8ba4f0d62e0894d9f964 (diff)
parent0978be7affa6222d91a0bc71ddd1e86f81fc56cd (diff)
Merge commit 'upstream/master' into prv/po
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r--IkiWiki/Plugin/template.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index b872f0962..b6097bb49 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -69,9 +69,13 @@ sub preprocess (@) {
}
}
+ # This needs to run even in scan mode, in order to process
+ # links and other metadata includes via the template.
+ my $scan=! defined wantarray;
+
return IkiWiki::preprocess($params{page}, $params{destpage},
IkiWiki::filter($params{page}, $params{destpage},
- $template->output));
+ $template->output), $scan);
}
1