aboutsummaryrefslogtreecommitdiff
path: root/pages/members
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 14:07:57 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 14:07:57 +0000
commit69c7f6291437cae2aa7b98f034abdadfc31c8d69 (patch)
tree9590e142768232d965fa0779e0b8d09c4edb04ed /pages/members
parent05effb863e76702ee3875e2745ccfd7995a15a29 (diff)
downloadelgg-69c7f6291437cae2aa7b98f034abdadfc31c8d69.tar.gz
elgg-69c7f6291437cae2aa7b98f034abdadfc31c8d69.tar.bz2
replaced deprecated function in members search page
git-svn-id: http://code.elgg.org/elgg/trunk@7644 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages/members')
-rw-r--r--pages/members/search.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/pages/members/search.php b/pages/members/search.php
index 45df46a76..e9b4eb170 100644
--- a/pages/members/search.php
+++ b/pages/members/search.php
@@ -23,8 +23,14 @@ if ($vars['search_type'] == 'tag') {
$title = elgg_echo('members:title:searchname', array($name));
- elgg_set_context('search');
- $content = list_user_search($name);
+ global $CONFIG;
+ $params = array(
+ 'type' => 'user',
+ 'full_view' => false,
+ 'joins' => array("join {$CONFIG->dbprefix}users_entity u on e.guid=u.guid"),
+ 'wheres' => array("(u.name like \"%{$name}%\" or u.username like \"%{$name}%\")"),
+ );
+ $content .= elgg_list_entities($params);
}
$params = array(