mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[ticket/14242] Fix memberlist sort method
PHPBB3-14242
This commit is contained in:
parent
a6fd55db35
commit
b23c0f1442
@ -88,7 +88,7 @@ $submit = (isset($_POST['submit'])) ? true : false;
|
||||
|
||||
$default_key = 'c';
|
||||
$sort_key = request_var('sk', $default_key);
|
||||
$sort_dir = request_var('sd', 'a');
|
||||
$sort_dir = request_var('sd', 'd');
|
||||
|
||||
// What do you want to do today? ... oops, I think that line is taken ...
|
||||
switch ($mode)
|
||||
@ -1233,7 +1233,7 @@ switch ($mode)
|
||||
$check_params = array(
|
||||
'g' => array('g', 0),
|
||||
'sk' => array('sk', $default_key),
|
||||
'sd' => array('sd', 'a'),
|
||||
'sd' => array('sd', 'd'),
|
||||
'form' => array('form', ''),
|
||||
'field' => array('field', ''),
|
||||
'select_single' => array('select_single', $select_single),
|
||||
@ -1571,12 +1571,12 @@ switch ($mode)
|
||||
'U_HIDE_FIND_MEMBER' => ($mode == 'searchuser' || ($mode == '' && $submit)) ? $u_hide_find_member : '',
|
||||
'U_LIVE_SEARCH' => ($config['allow_live_searches']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=livesearch') : false,
|
||||
'U_SORT_USERNAME' => $sort_url . '&sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_JOINED' => $sort_url . '&sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_POSTS' => $sort_url . '&sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
|
||||
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_LIST_CHAR' => $sort_url . '&sk=a&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),
|
||||
'U_SORT_JOINED' => $sort_url . '&sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'd') ? 'a' : 'd'),
|
||||
'U_SORT_POSTS' => $sort_url . '&sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'd') ? 'a' : 'd'),
|
||||
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'd') ? 'a' : 'd'),
|
||||
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'd') ? 'a' : 'd') : '',
|
||||
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'd') ? 'a' : 'd'),
|
||||
'U_LIST_CHAR' => $sort_url . '&sk=d&sd=' . (($sort_key == 'l' && $sort_dir == 'd') ? 'a' : 'd'),
|
||||
|
||||
'S_SHOW_GROUP' => ($mode == 'group') ? true : false,
|
||||
'S_VIEWONLINE' => $auth->acl_get('u_viewonline'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user