pagestats: when making a tag cloud, don't emit links where the tag is unused

master
Simon McVittie 2009-06-18 18:25:46 +01:00
parent f07bb9b48b
commit 2b0c8d167e
1 changed files with 2 additions and 0 deletions

View File

@ -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).