diff options
author | intrigeri <intrigeri@boum.org> | 2010-06-29 15:13:23 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-06-29 15:17:56 +0200 |
commit | dcd57dd5c9f3265bb7a78a5696b90976698c43aa (patch) | |
tree | c28ea45d18d36e5a0195bef7027b2c0df3b94af1 /IkiWiki/Plugin/editpage.pm | |
parent | 4f44534d72c9a9a947bc38a3cb4987705c25bea5 (diff) |
Add a fullpage arg to filter.
Set it to true every time IkiWiki::filter is called on a full page's content.
This is a much nicer solution, for the po plugin, than previous whitelisting
using caller().
Diffstat (limited to 'IkiWiki/Plugin/editpage.pm')
-rw-r--r-- | IkiWiki/Plugin/editpage.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm index 1a04a72b5..706630203 100644 --- a/IkiWiki/Plugin/editpage.pm +++ b/IkiWiki/Plugin/editpage.pm @@ -187,7 +187,7 @@ sub cgi_editpage ($$) { my $preview=htmlize($page, $page, $type, linkify($page, $page, preprocess($page, $page, - filter($page, $page, $content), 0, 1))); + filter($page, $page, $content, 'fullpage'), 0, 1))); run_hooks(format => sub { $preview=shift->( page => $page, |