From 498dba8b7049455996c22d791fa146333c04e201 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 29 Jul 2006 20:07:48 +0000 Subject: use htmllink --- IkiWiki/Plugin/pagestats.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'IkiWiki') 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 = "
\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("%s\n", - $class, $link, $page); - + $res .= "". + IkiWiki::htmllink($params{page}, $params{destpage}, $page). + "\n"; } $res .= "
\n"; -- cgit v1.2.3