aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/intro.php7
-rw-r--r--admin/themes/default/template/intro.tpl1
2 files changed, 8 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,
diff --git a/admin/themes/default/template/intro.tpl b/admin/themes/default/template/intro.tpl
index 6bdbfc9ff..21646e01e 100644
--- a/admin/themes/default/template/intro.tpl
+++ b/admin/themes/default/template/intro.tpl
@@ -78,6 +78,7 @@ jQuery().ready(function(){
(<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>)
{/if}
</li>
+ <li>{$DB_RATES}</li>
</ul>
</dd>
</dl>