diff options
author | intrigeri <intrigeri@boum.org> | 2009-03-09 00:32:10 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-03-09 00:32:10 +0100 |
commit | f4a1732b0e65ea4459098e4e852dff10a5af9320 (patch) | |
tree | 60b8cf4b1677504cb86f301bb62a33cc769fafd9 /IkiWiki/Plugin/template.pm | |
parent | cc5be82b8b7cfe3b679d8ba4f0d62e0894d9f964 (diff) | |
parent | 0978be7affa6222d91a0bc71ddd1e86f81fc56cd (diff) |
Merge commit 'upstream/master' into prv/po
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r-- | IkiWiki/Plugin/template.pm | 6 |
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 |