mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
related to #1679 same badge for rating page
This commit is contained in:
+7
-1
@@ -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')),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user