aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-12-26 11:35:40 +0000
committermistic100 <mistic@piwigo.org>2012-12-26 11:35:40 +0000
commit9cc816d364057828cecc26dc1432448a57f261e9 (patch)
tree9987060f41c7278e8b0ed80cf45d52dadc4bd323 /themes
parent8188973b0c87e7b8568325c603379239d2375ab0 (diff)
feature 2816: {strip} smarty tag can introduce bugs in javascript + fix picture.tpl
git-svn-id: http://piwigo.org/svn/trunk@19575 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes')
-rw-r--r--themes/default/template/picture.tpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 7713c7555..c75a60305 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -258,10 +258,11 @@ y.callService(
if (e) e.innerHTML = rating.score;
e = document.getElementById("ratingCount");
if (e) {ldelim}
- if (rating.count == 1)
+ if (rating.count == 1) {
e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
- else
+ } else {
e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
+ }
{rdelim}
{rdelim}{rdelim} );
{/footer_script}