Skip to content

Commit

Permalink
(cp 2c07301) Fixing issue #731 (#754)
Browse files Browse the repository at this point in the history
* Fixing issue #731, if NB_PHOTOS is upper than 1000 display it

* Fixs issue #731 now number of picture between 1000 and 1999 are displayed

* Fixs formatting
  • Loading branch information
plegall committed Sep 4, 2017
1 parent 0f2c9a8 commit 183de75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/intro.php
Expand Up @@ -206,7 +206,7 @@

$template->assign(
array(
'NB_PHOTOS' => number_format($nb_photos, 0, '.', ','),
'NB_PHOTOS' => $nb_photos,
'NB_ALBUMS' => $nb_categories,
'NB_TAGS' => $nb_tags,
'NB_IMAGE_TAG' => $nb_image_tag,
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/intro.tpl
Expand Up @@ -90,7 +90,7 @@ div.stat-box {
{if $NB_PHOTOS > 1}
<a class="stat-box" href="{$U_ADD_PHOTOS}">
<i class="icon-picture"></i>
<span class="number">{$NB_PHOTOS}</span><span class="caption">{'Photos'|translate}</span>
<span class="number">{$NB_PHOTOS|number_format}</span><span class="caption">{'Photos'|translate}</span>
</a>
{/if}

Expand Down

0 comments on commit 183de75

Please sign in to comment.