From 34e6f1aa4905228d317511cdd4b57b759261ad39 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 5 Jun 2012 18:06:53 +0000 Subject: multisize - avoid php warning for rotation_angle; better error logging; javascript avoid navigation to empty # anchor git-svn-id: http://piwigo.org/svn/trunk@15551 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/picture.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'themes') diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 8795d0bc1..1862fa35f 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -257,12 +257,10 @@ y.callService( if (e) e.innerHTML = rating.score; e = document.getElementById("ratingCount"); if (e) {ldelim} - if (rating.count == 1) {ldelim} + if (rating.count == 1) e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count); - {rdelim} - else {ldelim} + else e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); - {rdelim} {rdelim} {rdelim}{rdelim} ); {/footer_script} -- cgit v1.2.3