related to #1679 same badge for rating page

This commit is contained in:
Matthieu Leproux
2022-06-27 12:57:22 +02:00
parent a983d40ddb
commit 4605d23330
3 changed files with 16 additions and 2 deletions
+7 -1
View File
@@ -102,6 +102,12 @@ $query.= '
WHERE 1=1'. $page['user_filter'];
list($nb_images) = pwg_db_fetch_row(pwg_query($query));
$query = '
SELECT
COUNT(*)
FROM '.RATE_TABLE.
';';
list($nb_elements) = pwg_db_fetch_row(pwg_query($query));
// +-----------------------------------------------------------------------+
// | template init |
@@ -119,7 +125,7 @@ $template->assign(
),
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php',
'DISPLAY' => $elements_per_page,
'NB_ELEMENTS' => $nb_images,
'NB_ELEMENTS' => $nb_elements,
'category' => (isset($_GET['cat']) ? array($_GET['cat']) : array()),
'CACHE_KEYS' => get_admin_client_cache_keys(array('categories')),
)