diff --git a/ext/home/main.php b/ext/home/main.php index 081eb050..8a02bce6 100644 --- a/ext/home/main.php +++ b/ext/home/main.php @@ -52,12 +52,10 @@ class Home extends Extension } $counter_dir = $config->get_string('home_counter', 'default'); - $num_comma = ""; + $total = Search::count_images(); + $num_comma = number_format($total); $counter_text = ""; if ($counter_dir != 'none') { - $total = Search::count_images(); - $num_comma = number_format($total); - if ($counter_dir != 'text-only') { $strtotal = "$total"; $length = strlen($strtotal);