save some bandwidth by removing a load of decimal places
This commit is contained in:
parent
bde744826e
commit
b609dfc19c
@ -112,7 +112,7 @@ class TagList implements Extension {
|
|||||||
$html = "";
|
$html = "";
|
||||||
foreach($tag_data as $row) {
|
foreach($tag_data as $row) {
|
||||||
$h_tag = html_escape($row['tag']);
|
$h_tag = html_escape($row['tag']);
|
||||||
$size = $row['scaled'];
|
$size = sprintf("%.2f", (float)$row['scaled']);
|
||||||
$link = $this->tag_link($row['tag']);
|
$link = $this->tag_link($row['tag']);
|
||||||
if($size<0.5) $size = 0.5;
|
if($size<0.5) $size = 0.5;
|
||||||
$h_tag_no_underscores = str_replace("_", " ", $h_tag);
|
$h_tag_no_underscores = str_replace("_", " ", $h_tag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user