Changing for-loops to use pre-calculated values.
Rather than calculating the value each time.
This commit is contained in:
@@ -69,7 +69,8 @@ class Home extends SimpleExtension {
|
||||
$num_comma = number_format($total);
|
||||
|
||||
$counter_text = "";
|
||||
for($n=0; $n<strlen($strtotal); $n++) {
|
||||
$length = strlen($strtotal);
|
||||
for($n=0; $n<$length; $n++) {
|
||||
$cur = $strtotal[$n];
|
||||
$counter_text .= " <img alt='$cur' src='$data_href/ext/home/counters/$counter_dir/$cur.gif' /> ";
|
||||
}
|
||||
|
Reference in New Issue
Block a user