From 42a2d6e12f55592e0520cedeed01974b04198a1f Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 31 Dec 2023 23:07:54 +0000 Subject: [PATCH] [home] show text counter even without graphical counter --- ext/home/main.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);