diff options
| author | PayBas <contact@paybas.com> | 2014-07-08 00:42:01 +0200 |
|---|---|---|
| committer | PayBas <contact@paybas.com> | 2014-07-08 00:42:01 +0200 |
| commit | bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8 (patch) | |
| tree | 04b581f460d9d23bf5db49da20467c36e08ad417 | |
| parent | 0a286e044b3d7b71edea5f79213e6c008db66986 (diff) | |
| download | forums-bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8.tar forums-bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8.tar.gz forums-bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8.tar.bz2 forums-bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8.tar.xz forums-bdfca39e071d74fff39d92ca9cb4c03ef05b0ba8.zip | |
[ticket/12804] Disable jabber from memberlist sort options
PHPBB3-12804
| -rw-r--r-- | phpBB/memberlist.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 80917a7f76..4f4dcb1b41 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -829,8 +829,14 @@ switch ($mode) $pagination = $phpbb_container->get('pagination'); // Sorting - $sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'k' => $user->lang['JABBER']); - $sort_key_sql = array('a' => 'u.username_clean', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'k' => 'u.user_jabber'); + $sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT']); + $sort_key_sql = array('a' => 'u.username_clean', 'c' => 'u.user_regdate', 'd' => 'u.user_posts'); + + if ($config['jab_enable']) + { + $sort_key_text['k'] = $user->lang['JABBER']; + $sort_key_sql['k'] = 'u.user_jabber'; + } if ($auth->acl_get('a_user')) { |
