diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-17 19:55:11 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-17 19:55:11 +0000 |
commit | cf35ee04cddd7b9b39636499dd24b689443c0e97 (patch) | |
tree | c5b052a1edf1228f786bfc65229ae634f3c4b1c0 /IkiWiki.pm | |
parent | fca6ab6def2536a6566fe3ddca2c069397f856b1 (diff) | |
download | ikiwiki-cf35ee04cddd7b9b39636499dd24b689443c0e97.tar ikiwiki-cf35ee04cddd7b9b39636499dd24b689443c0e97.tar.gz |
* Add a destpage parameter to the filter hook.
* Fix links to smilies generated by the smiley plugin for inlined pages. The
old links were often wrong, but often still worked by accident.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index aea5b7abf..a0b902794 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -651,12 +651,14 @@ sub preprocess ($$$;$$) { #{{{ return $content; } #}}} -sub filter ($$) { #{{{ +sub filter ($$$) { #{{{ my $page=shift; + my $destpage=shift; my $content=shift; run_hooks(filter => sub { - $content=shift->(page => $page, content => $content); + $content=shift->(page => $page, destpage => $destpage, + content => $content); }); return $content; |