aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(