Ignore:
Timestamp:
Jul 26, 2011, 9:04:50 PM (13 years ago)
Author:
rvelices
Message:

feature 2384: improve average rating calculation (final)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/intro.php

    r10684 r11839  
    191191;';
    192192list($nb_comments) = pwg_db_fetch_row(pwg_query($query));
     193
     194$query = '
     195SELECT COUNT(*)
     196  FROM '.RATE_TABLE.'
     197;';
     198list($nb_rates) = pwg_db_fetch_row(pwg_query($query));
    193199
    194200$template->assign(
     
    214220    'DB_GROUPS' => l10n_dec('%d group', '%d groups', $nb_groups),
    215221    'DB_COMMENTS' => l10n_dec('%d comment', '%d comments', $nb_comments),
     222                'DB_RATES' => sprintf('%d rates', $nb_rates),
    216223    'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade',
    217224    'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo',
Note: See TracChangeset for help on using the changeset viewer.