aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-11 19:23:31 -0700
committerCesar G <prototech91@gmail.com>2014-04-23 09:11:40 -0700
commit607698c8844b1f08aef1aca63cd8d981783ef92a (patch)
treea4c35830dd69f287e73a42a0be7be33ffdb9287a /phpBB/memberlist.php
parent683e8c0c17726205501333aea117e4394fc34ef4 (diff)
downloadforums-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.php2
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) ? "&amp;start=$start" : '') . (!empty($params) ? '&amp;' . implode('&amp;', $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 . '&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'),