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/Plugin/smiley.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/Plugin/smiley.pm')
-rw-r--r-- | IkiWiki/Plugin/smiley.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/smiley.pm b/IkiWiki/Plugin/smiley.pm index 1a9833e6e..96e714d3d 100644 --- a/IkiWiki/Plugin/smiley.pm +++ b/IkiWiki/Plugin/smiley.pm @@ -36,7 +36,7 @@ sub filter (@) { #{{{ build_regexp() unless defined $smiley_regexp; $params{content} =~ s{(?:^|(?<=\s))(\\?)$smiley_regexp(?:(?=\s)|$)}{ - $1 ? $2 : htmllink($params{page}, $params{page}, $smileys{$2}, linktext => $2) + $1 ? $2 : htmllink($params{page}, $params{destpage}, $smileys{$2}, linktext => $2) }egs if length $smiley_regexp; return $params{content}; |