[home] show text counter even without graphical counter

This commit is contained in:
Shish 2023-12-31 23:07:54 +00:00
parent d3cf2b9531
commit 42a2d6e12f

View file

@ -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);