From 8230a3656576bd98360bddc4e0282d78b8052588 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 17 Jul 2009 00:35:52 +0100 Subject: [PATCH] save some bandwidth by removing a load of decimal places --- ext/tag_list/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index cba9e52f..bdb2ff58 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -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);