fixed #1832 Number of displayed users in user manager is now saved in user_prefs

This commit is contained in:
MatthieuLP
2022-12-19 16:35:46 +01:00
parent 0c5c33ac32
commit 4ea57967cd
3 changed files with 56 additions and 12 deletions
+11
View File
@@ -173,6 +173,17 @@ $template->assign('groups_arr_name', implode(',', $groups_arr_name));
$template->assign('guest_id', $conf["guest_id"]);
$template->assign('view_selector', userprefs_get_param('user-manager-view', 'line'));
if (userprefs_get_param('user-manager-view', 'line') == 'line')
{
//Show 5 users by default
$template->assign('pagination', userprefs_get_param('user-manager-pagination', 5));
}
else
{
//Show 10 users by default
$template->assign('pagination', userprefs_get_param('user-manager-pagination', 10));
}
// +-----------------------------------------------------------------------+
// | html code display |
// +-----------------------------------------------------------------------+