rename #images.average_rate to rating_score

git-svn-id: http://piwigo.org/svn/trunk@11893 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2011-08-02 19:20:50 +00:00
parent a61fea9283
commit 86ae4d8b3a
20 changed files with 130 additions and 89 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ SELECT i.id,
i.path,
i.file,
i.tn_ext,
i.average_rate AS score,
i.rating_score AS score,
MAX(r.date) AS recently_rated,
ROUND(AVG(r.rate),2) AS avg_rates,
COUNT(r.rate) AS nb_rates,
@@ -176,7 +176,7 @@ SELECT i.id,
i.path,
i.file,
i.tn_ext,
i.average_rate,
i.rating_score,
r.element_id
ORDER BY ' . $available_order_by[$order_by_index][1] .'
LIMIT '.$elements_per_page.' OFFSET '.$start.'