aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRMcGirr83 <rmcgirr83@gmail.com>2015-10-19 09:53:43 -0400
committerRMcGirr83 <rmcgirr83@gmail.com>2015-10-19 09:53:43 -0400
commitb23c0f14421cedf73924a1aaaff83a16666885d1 (patch)
tree5b8531738e60b47daa01a9e0e9148b7b0719207b /phpBB/memberlist.php
parentMerge pull request #3647 from marc1706/ticket/13799 (diff)
downloadphpbb-b23c0f14421cedf73924a1aaaff83a16666885d1.tar.gz
phpbb-b23c0f14421cedf73924a1aaaff83a16666885d1.tar.bz2
phpbb-b23c0f14421cedf73924a1aaaff83a16666885d1.zip
[ticket/14242] Fix memberlist sort method
PHPBB3-14242
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php16
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 . '&amp;sk=a&amp;sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
- 'U_SORT_JOINED' => $sort_url . '&amp;sk=c&amp;sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
- 'U_SORT_POSTS' => $sort_url . '&amp;sk=d&amp;sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
- 'U_SORT_EMAIL' => $sort_url . '&amp;sk=e&amp;sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
- 'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&amp;sk=l&amp;sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
- 'U_SORT_RANK' => $sort_url . '&amp;sk=m&amp;sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
- 'U_LIST_CHAR' => $sort_url . '&amp;sk=a&amp;sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),
+ 'U_SORT_JOINED' => $sort_url . '&amp;sk=c&amp;sd=' . (($sort_key == 'c' && $sort_dir == 'd') ? 'a' : 'd'),
+ 'U_SORT_POSTS' => $sort_url . '&amp;sk=a&amp;sd=' . (($sort_key == 'a' && $sort_dir == 'd') ? 'a' : 'd'),
+ 'U_SORT_EMAIL' => $sort_url . '&amp;sk=e&amp;sd=' . (($sort_key == 'e' && $sort_dir == 'd') ? 'a' : 'd'),
+ 'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&amp;sk=l&amp;sd=' . (($sort_key == 'l' && $sort_dir == 'd') ? 'a' : 'd') : '',
+ 'U_SORT_RANK' => $sort_url . '&amp;sk=m&amp;sd=' . (($sort_key == 'm' && $sort_dir == 'd') ? 'a' : 'd'),
+ 'U_LIST_CHAR' => $sort_url . '&amp;sk=d&amp;sd=' . (($sort_key == 'l' && $sort_dir == 'd') ? 'a' : 'd'),
'S_SHOW_GROUP' => ($mode == 'group') ? true : false,
'S_VIEWONLINE' => $auth->acl_get('u_viewonline'),