]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
use htmllink
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 29 Jul 2006 20:07:48 +0000 (20:07 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 29 Jul 2006 20:07:48 +0000 (20:07 +0000)
IkiWiki/Plugin/pagestats.pm

index 34fd11715d24e03fa7012023a97c1aef7d86d13d..86ebbe1d5f7732b1c8ab554535395bc74569072b 100644 (file)
@@ -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";