diff options
author | Cesar G <prototech91@gmail.com> | 2014-04-11 19:23:31 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-04-23 09:11:40 -0700 |
commit | 607698c8844b1f08aef1aca63cd8d981783ef92a (patch) | |
tree | a4c35830dd69f287e73a42a0be7be33ffdb9287a /phpBB/memberlist.php | |
parent | 683e8c0c17726205501333aea117e4394fc34ef4 (diff) | |
download | forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.gz forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.bz2 forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.xz forums-607698c8844b1f08aef1aca63cd8d981783ef92a.zip |
[ticket/10737] Add config setting to disable live searches.
PHPBB3-10737
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 4103855f43..acda40c8fb 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1647,7 +1647,7 @@ switch ($mode) 'U_FIND_MEMBER' => ($config['load_search'] || $auth->acl_get('a_')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser' . (($start) ? "&start=$start" : '') . (!empty($params) ? '&' . implode('&', $params) : '')) : '', 'U_HIDE_FIND_MEMBER' => ($mode == 'searchuser' || ($mode == '' && $submit)) ? $u_hide_find_member : '', - 'U_LIVE_SEARCH' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=livesearch'), + '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'), |