aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/picture.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-10-19 21:00:18 +0000
committervdigital <vdigital@piwigo.org>2008-10-19 21:00:18 +0000
commit2f2067153599c2699c235f2ce4de0b56870ef5f9 (patch)
tree4f0c17c4de0f486e044e92e2abd4ed919b309303 /template/yoga/picture.tpl
parent4e6e78d04cdb685a535974d3a3b2721dac15a4c1 (diff)
0 comment is removed (Start with 1)
Accurate samples/my-picture.tpl... git-svn-id: http://piwigo.org/svn/branches/2.0@2779 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/yoga/picture.tpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl
index d6a99decf..b8f3ec522 100644
--- a/template/yoga/picture.tpl
+++ b/template/yoga/picture.tpl
@@ -251,8 +251,9 @@ y.callService(
{if isset($COMMENT_COUNT)}
<div id="comments">
- <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
-
+ {if $COMMENT_COUNT > 0}
+ <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
+ {/if}
{if !empty($COMMENT_NAV_BAR)}
<div class="navigationBar">{$COMMENT_NAV_BAR}</div>
{/if}