Permalink
Browse files

Refs #2327 - replaced call to list_entities_from_metadata() in group …

…tag search

git-svn-id: http://code.elgg.org/elgg/branches/1.7@6745 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information...
1 parent db39a03 commit 7f583a8c370874b44c6c3cc6cf9a0cbc9acb52cc @cash cash committed Jul 20, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 mod/groups/all.php
View
@@ -28,7 +28,14 @@
if ($tag != "") {
$filter = 'search';
// groups plugin saves tags as "interests" - see groups_fields_setup() in start.php
- $objects = list_entities_from_metadata('interests',$tag,'group',"","", $limit, false, false, true, false);
+ $params = array(
+ 'metadata_name' => 'interests',
+ 'metadata_value' => $tag,
+ 'types' => 'group',
+ 'limit' => $limit,
+ 'full_view' => FALSE,
+ );
+ $objects = elgg_list_entities_from_metadata($params);
} else {
switch($filter){
case "newest":

0 comments on commit 7f583a8

Please sign in to comment.