aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-10-28 19:35:45 +0000
committerrvelices <rv-github@modusoptimus.com>2011-10-28 19:35:45 +0000
commitb58fea9f2c3b8c084dc90aef527d3e87b012df35 (patch)
tree790608d39c291fdae669e16261e7a5d82fadad86 /admin/rating.php
parent2a5be28bc5a0fe4748279bebe23d1be6416fe015 (diff)
feature 2477: remove unnecesary admin css rules / html elements
git-svn-id: http://piwigo.org/svn/trunk@12528 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/rating.php')
-rw-r--r--admin/rating.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/admin/rating.php b/admin/rating.php
index a500ecb7d..2f0959023 100644
--- a/admin/rating.php
+++ b/admin/rating.php
@@ -131,7 +131,7 @@ $template->assign(
$available_order_by= array(
array(l10n('Rate date'), 'recently_rated DESC'),
- array(l10n('Rating score'), 'score DESC'),
+ array(l10n('Rating score'), 'score DESC'),
array(l10n('Average rate'), 'avg_rates DESC'),
array(l10n('Number of rates'), 'nb_rates DESC'),
array(l10n('Sum of rates'), 'sum_rates DESC'),
@@ -162,14 +162,14 @@ $template->assign('user_options_selected', array(@$_GET['users']) );
$query = '
SELECT i.id,
- i.path,
- i.file,
- i.tn_ext,
- 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,
- SUM(r.rate) AS sum_rates
+ i.path,
+ i.file,
+ i.tn_ext,
+ 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,
+ SUM(r.rate) AS sum_rates
FROM '.RATE_TABLE.' AS r
LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id
WHERE 1 = 1 ' . $page['user_filter'] . '
@@ -245,7 +245,7 @@ ORDER BY date DESC;';
$tpl_image['rates'][] =
array(
- 'DATE' => format_date($row['date']),
+ 'DATE' => /*format_date*/($row['date']),
'RATE' => $row['rate'],
'USER' => $user_rate,
'U_DELETE' => $url_del