From ca08eb6d170d375ef4fca53604956f3474c7db19 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 22:37:30 +0000 Subject: Merged r6701:6756 from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/search.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mod/file') diff --git a/mod/file/search.php b/mod/file/search.php index 9907b02e3..acc1f9cda 100644 --- a/mod/file/search.php +++ b/mod/file/search.php @@ -79,7 +79,15 @@ $limit = 10; if ($search_viewtype == "gallery") $limit = 12; if (!empty($tag)) { - $area2 .= list_entities_from_metadata($md_type, $tag, 'object', 'file', $owner_guid, $limit); + $params = array( + 'metadata_name' => $md_type, + 'metadata_value' => $tag, + 'types' => 'object', + 'subtypes' => 'file', + 'owner_guid' => $owner_guid, + 'limit' => $limit, + ); + $area2 .= elgg_list_entities_from_metadata($params); } else { $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit, 'offset' => $offset)); } -- cgit v1.2.3