From ba94a48ff66a001dd20c5ac2da34681880583945 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 17 Feb 2010 23:14:33 +0000 Subject: Fixes #1488: Removed use of deprecated functions in core. git-svn-id: http://code.elgg.org/elgg/trunk@3947 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/activity.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'engine/lib/activity.php') diff --git a/engine/lib/activity.php b/engine/lib/activity.php index 30c81cb96..51b083531 100644 --- a/engine/lib/activity.php +++ b/engine/lib/activity.php @@ -143,8 +143,14 @@ function get_activity_stream_data($limit = 10, $offset = 0, $type = "", $subtype if ($owner_relationship) { $friendsarray = ""; - if ($friends = get_entities_from_relationship($owner_relationship, $owner_guid[0], - FALSE, "user", $subtype, 0, "time_created desc", 9999)) { + if ($friends = elgg_get_entities_from_relationship(array( + 'relationship' => $owner_relationship, + 'relationship_guid' => $owner_guid[0], + 'inverse_relationship' => FALSE, + 'types' => 'user', + 'subtypes' => $subtype, + 'limit' => 9999)) + ) { $friendsarray = array(); foreach($friends as $friend) { @@ -160,4 +166,4 @@ function get_activity_stream_data($limit = 10, $offset = 0, $type = "", $subtype WHERE 1 $user AND ($obj_query) ORDER BY sl.time_created desc limit $offset, $limit"; return get_data($query); -} \ No newline at end of file +} -- cgit v1.2.3