diff options
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/js/rating.js | 2 | ||||
-rw-r--r-- | themes/default/template/picture.tpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/js/rating.js b/themes/default/js/rating.js index 668aed930..d69bd5987 100644 --- a/themes/default/js/rating.js +++ b/themes/default/js/rating.js @@ -72,7 +72,7 @@ function updateRating(e) if (gRatingOptions.ratingSummaryElement) { var t = gRatingOptions.ratingSummaryText; - var args =[result.average, result.count], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ ); + var args =[result.score, result.count, result.average], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ ); while (idx<args.length) t=t.replace(rexp, args[idx++]); gRatingOptions.ratingSummaryElement.innerHTML = t; } diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 79c5075af..6ffaa7261 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -196,11 +196,11 @@ y.callService( {if $display_info.average_rate and isset($rate_summary)} <tr id="Average"> - <td class="label">{'Average rate'|@translate}</td> + <td class="label">{'Rating'|@translate}</td> <td class="value" id="ratingSummary"> {if $rate_summary.count} {assign var='rate_text' value='%.2f (rated %d times)'|@translate} - {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count)} + {$pwg->sprintf($rate_text, $rate_summary.score, $rate_summary.count, $rate_summary.average)} {else} {'no rate'|@translate} {/if} |