aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-28 16:58:31 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-28 16:58:43 -0400
commit00503f25cdd892de521983a29f7e3d96a32801c8 (patch)
treeac1b3b536bbea18358d3137610ff8ca44be3d7d7 /IkiWiki
parent1ab9eb3420a0bb44eebde61bb40f1e61e9dd8506 (diff)
downloadikiwiki-00503f25cdd892de521983a29f7e3d96a32801c8.tar
ikiwiki-00503f25cdd892de521983a29f7e3d96a32801c8.tar.gz
smiley: Generate links relative to the destpage. (Fixes a reversion from 2.41.)
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/smiley.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/smiley.pm b/IkiWiki/Plugin/smiley.pm
index a8fed69e1..51b32b28f 100644
--- a/IkiWiki/Plugin/smiley.pm
+++ b/IkiWiki/Plugin/smiley.pm
@@ -76,7 +76,7 @@ MATCH: while (m{(?:^|(?<=\s|>))(\\?)$smiley_regexp(?:(?=\s|<)|$)}g) {
else {
# Replace the smiley with its expanded value.
substr($_, $spos, length($smiley))=
- htmllink($params{page}, $params{page},
+ htmllink($params{page}, $params{destpage},
$smileys{$smiley}, linktext => $smiley);
}
}