aboutsummaryrefslogtreecommitdiffstats
path: root/admin/intro.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-07-26 19:04:50 +0000
committerrvelices <rv-github@modusoptimus.com>2011-07-26 19:04:50 +0000
commitc0bb4dfb43d05d68cb4abe69e279e91c88bd2f11 (patch)
treed82bf347d8b4a5deb8532371e7073e2692737bec /admin/intro.php
parent630c4bb85e82c956053526255097f3fa706427b4 (diff)
feature 2384: improve average rating calculation (final)
git-svn-id: http://piwigo.org/svn/trunk@11839 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/intro.php')
-rw-r--r--admin/intro.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/intro.php b/admin/intro.php
index 7b6985e6f..63d5b9805 100644
--- a/admin/intro.php
+++ b/admin/intro.php
@@ -191,6 +191,12 @@ SELECT COUNT(*)
;';
list($nb_comments) = pwg_db_fetch_row(pwg_query($query));
+$query = '
+SELECT COUNT(*)
+ FROM '.RATE_TABLE.'
+;';
+list($nb_rates) = pwg_db_fetch_row(pwg_query($query));
+
$template->assign(
array(
'PHPWG_URL' => PHPWG_URL,
@@ -213,6 +219,7 @@ $template->assign(
'DB_USERS' => l10n_dec('%d user', '%d users', $nb_users),
'DB_GROUPS' => l10n_dec('%d group', '%d groups', $nb_groups),
'DB_COMMENTS' => l10n_dec('%d comment', '%d comments', $nb_comments),
+ 'DB_RATES' => sprintf('%d rates', $nb_rates),
'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade',
'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo',
'PHP_DATATIME' => $php_current_timestamp,