diff options
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/pagestats.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm index 34fd11715..86ebbe1d5 100644 --- a/IkiWiki/Plugin/pagestats.pm +++ b/IkiWiki/Plugin/pagestats.pm @@ -50,10 +50,9 @@ sub preprocess (@) { #{{{ my $res = "<div class='pagecloud'>\n"; foreach my $page (sort keys %counts) { my $class = $classes[$counts{$page} * scalar(@classes) / ($max + 1)]; - my $link = IkiWiki::abs2rel(IkiWiki::htmlpage($page), IkiWiki::dirname($params{page})); - $res .= sprintf("<span class='%s'><a href='%s'>%s</a></span>\n", - $class, $link, $page); - + $res .= "<span class=\"$class\">". + IkiWiki::htmllink($params{page}, $params{destpage}, $page). + "</span>\n"; } $res .= "</div>\n"; |