]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/smiley.pm
don't add actions if all empty
[git.ikiwiki.info.git] / IkiWiki / Plugin / smiley.pm
index 5f05e3a4c2234aa053f6162f2c7eaf1028ede88b..f49c9b62f6e27b8be7665e7b78c3bfe6e77b60ba 100644 (file)
@@ -35,7 +35,7 @@ sub filter (@) { #{{{
        my %params=@_;
        
        $params{content} =~ s{(?<=\s)(\\?)$smiley_regexp(?=\s)}{
-               $1 ? $2 : IkiWiki::htmllink($params{page}, $smileys{$2}, 0, 0, $2)
+               $1 ? $2 : IkiWiki::htmllink($params{page}, $params{page}, $smileys{$2}, 0, 0, $2)
        }egs;
        
        return $params{content};