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/categories/listing.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'mod/categories/listing.php') diff --git a/mod/categories/listing.php b/mod/categories/listing.php index ecc1bede5..3a7ca6e8d 100644 --- a/mod/categories/listing.php +++ b/mod/categories/listing.php @@ -18,17 +18,20 @@ $owner_guid = get_input("owner_guid", 0); $subtype = get_input("subtype", ELGG_ENTITIES_ANY_VALUE); $type = get_input("type", 'object'); -$objects = list_entities_from_metadata('universal_categories', - $category, - $type, - $subtype, - $owner_guid, - $limit, - false, - false, - true, - false); - +$params = array( + 'metadata_name' => 'universal_categories', + 'metadata_value' => $category, + 'types' => $type, + 'subtypes' => $subtype, + 'owner_guid' => $owner_guid, + 'limit' => $limit, + 'full_view' => FALSE, + 'metadata_case_sensitive' => FALSE, +); +$current_context = get_context(); +set_context('search'); +$objects = elgg_list_entities_from_metadata($params); +set_context($current_context); $title = sprintf(elgg_echo('categories:results'), $category); -- cgit v1.2.3