[home] show text counter even without graphical counter
This commit is contained in:
@@ -52,12 +52,10 @@ class Home extends Extension
|
|||||||
}
|
}
|
||||||
$counter_dir = $config->get_string('home_counter', 'default');
|
$counter_dir = $config->get_string('home_counter', 'default');
|
||||||
|
|
||||||
$num_comma = "";
|
$total = Search::count_images();
|
||||||
|
$num_comma = number_format($total);
|
||||||
$counter_text = "";
|
$counter_text = "";
|
||||||
if ($counter_dir != 'none') {
|
if ($counter_dir != 'none') {
|
||||||
$total = Search::count_images();
|
|
||||||
$num_comma = number_format($total);
|
|
||||||
|
|
||||||
if ($counter_dir != 'text-only') {
|
if ($counter_dir != 'text-only') {
|
||||||
$strtotal = "$total";
|
$strtotal = "$total";
|
||||||
$length = strlen($strtotal);
|
$length = strlen($strtotal);
|
||||||
|
Reference in New Issue
Block a user