projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pass a destpage parameter to the sanitize hook.
[ikiwiki.git]
/
IkiWiki.pm
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 3f92bda06bf352980be8fe1a9559dbdeb4020e69..a9debfb7dc86f3ba51be46a1f4ba011703017b54 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-641,8
+641,9
@@
sub userlink ($) { #{{{
}
} #}}}
-sub htmlize ($$$) { #{{{
+sub htmlize ($$$
$
) { #{{{
my $page=shift;
+ my $destpage=shift;
my $type=shift;
my $content=shift;
@@
-661,6
+662,7
@@
sub htmlize ($$$) { #{{{
run_hooks(sanitize => sub {
$content=shift->(
page => $page,
+ destpage => $destpage,
content => $content,
);
});