[home] show text counter even without graphical counter
This commit is contained in:
parent
d3cf2b9531
commit
42a2d6e12f
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue