pagestats: when making a tag cloud, don't emit links where the tag is unused
parent
f07bb9b48b
commit
2b0c8d167e
|
@ -63,6 +63,8 @@ sub preprocess (@) {
|
|||
|
||||
my $res = "<div class='pagecloud'>\n";
|
||||
foreach my $page (sort keys %counts) {
|
||||
next unless $counts{$page} > 0;
|
||||
|
||||
my $class = $classes[$counts{$page} * scalar(@classes) / ($max + 1)];
|
||||
$res .= "<span class=\"$class\">".
|
||||
htmllink($params{page}, $params{destpage}, $page).
|
||||
|
|
Loading…
Reference in New Issue