diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:24:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:24:23 -0400 |
commit | 1dddec0ba9f66f082f4b8349916cdb6bdb5636e3 (patch) | |
tree | 2ee6818cd5f9c896ab0de2caea677ba5a9cc18f9 /IkiWiki/Render.pm | |
parent | 1546b48b979399eb33ce502a00b089263d7cee26 (diff) | |
download | ikiwiki-1dddec0ba9f66f082f4b8349916cdb6bdb5636e3.tar ikiwiki-1dddec0ba9f66f082f4b8349916cdb6bdb5636e3.tar.gz |
Pass a destpage parameter to the sanitize hook.
Because the search plugin needed it, also because it's one of the few
plugins that didn't already have it.
I also considered adding it to htmlize, but I really cannot imagine caring
what the destpage is when htmlizing. (I'll probably be poven wrong later.)
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 3422024d1..272eb239a 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -191,7 +191,7 @@ sub render ($) { #{{{ will_render($page, htmlpage($page), 1); return if $type=~/^_/; - my $content=htmlize($page, $type, + my $content=htmlize($page, $page, $type, linkify($page, $page, preprocess($page, $page, filter($page, $page, @@ -520,7 +520,7 @@ sub commandline_render () { #{{{ $content=filter($page, $page, $content); $content=preprocess($page, $page, $content); $content=linkify($page, $page, $content); - $content=htmlize($page, $type, $content); + $content=htmlize($page, $page, $type, $content); $pagemtime{$page}=(stat($srcfile))[9]; print genpage($page, $content); |