save some bandwidth by removing a load of decimal places

This commit is contained in:
Shish 2009-07-17 00:35:52 +01:00
parent bde744826e
commit b609dfc19c

View file

@ -112,7 +112,7 @@ class TagList implements Extension {
$html = "";
foreach($tag_data as $row) {
$h_tag = html_escape($row['tag']);
$size = $row['scaled'];
$size = sprintf("%.2f", (float)$row['scaled']);
$link = $this->tag_link($row['tag']);
if($size<0.5) $size = 0.5;
$h_tag_no_underscores = str_replace("_", " ", $h_tag);