summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 20:07:48 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 20:07:48 +0000
commit498dba8b7049455996c22d791fa146333c04e201 (patch)
tree26c1b9db16bf02c237ecbe8343d5329deb089d37
parent35c90a5b582f0d40a122b151580e313c2b157b6f (diff)
use htmllink
-rw-r--r--IkiWiki/Plugin/pagestats.pm7
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";