From 4e1ab210289ab4e6c597f94f9469278d7b1ed903 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 6 Jan 2021 10:29:21 +0100 Subject: [PATCH] groups: set page title with template var instead of fake H2 --- admin/group_list.php | 6 ++++++ admin/themes/default/template/group_list.tpl | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/admin/group_list.php b/admin/group_list.php index db672fe60..381a4de4c 100644 --- a/admin/group_list.php +++ b/admin/group_list.php @@ -69,6 +69,8 @@ $users_url = $admin_url.'user_list&group='; $del_url = $admin_url.'group_list&delete='; $toggle_is_default_url = $admin_url.'group_list&toggle_is_default='; +$group_counter = 0; + while ($row = pwg_db_fetch_assoc($result)) { $query = ' @@ -99,8 +101,12 @@ SELECT u.'. $conf['user_fields']['username'].' AS username 'U_ISDEFAULT' => $toggle_is_default_url.$row['id'].'&pwg_token='.get_pwg_token(), ) ); + + $group_counter++; } +$template->assign('ADMIN_PAGE_TITLE', l10n('Group management').' '.$group_counter.''); + // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ diff --git a/admin/themes/default/template/group_list.tpl b/admin/themes/default/template/group_list.tpl index 93b0911c2..c4799b7c4 100644 --- a/admin/themes/default/template/group_list.tpl +++ b/admin/themes/default/template/group_list.tpl @@ -106,10 +106,6 @@ $(document).on('click', function (e) { {/function} -
-

{'Group management'|@translate} {(empty($groups)) ? 0 :count($groups)}

-
-