diff options
author | RMcGirr83 <rmcgirr83@gmail.com> | 2015-10-19 09:53:43 -0400 |
---|---|---|
committer | RMcGirr83 <rmcgirr83@gmail.com> | 2015-10-19 09:53:43 -0400 |
commit | b23c0f14421cedf73924a1aaaff83a16666885d1 (patch) | |
tree | 5b8531738e60b47daa01a9e0e9148b7b0719207b | |
parent | a6fd55db354c91dcd0220ab66ebf1036f5f05d85 (diff) | |
download | forums-b23c0f14421cedf73924a1aaaff83a16666885d1.tar forums-b23c0f14421cedf73924a1aaaff83a16666885d1.tar.gz forums-b23c0f14421cedf73924a1aaaff83a16666885d1.tar.bz2 forums-b23c0f14421cedf73924a1aaaff83a16666885d1.tar.xz forums-b23c0f14421cedf73924a1aaaff83a16666885d1.zip |
[ticket/14242] Fix memberlist sort method
PHPBB3-14242
-rw-r--r-- | phpBB/memberlist.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 364a3cd523..b126796446 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -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'), |