diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-17 23:14:33 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-17 23:14:33 +0000 |
commit | ba94a48ff66a001dd20c5ac2da34681880583945 (patch) | |
tree | 29b0ebfcd19ba03c69cd8ad7e4171c0002b3d207 /engine/lib/activity.php | |
parent | b3012350e2d8dafaf696e2c472f8cf0ae5e1674b (diff) | |
download | elgg-ba94a48ff66a001dd20c5ac2da34681880583945.tar.gz elgg-ba94a48ff66a001dd20c5ac2da34681880583945.tar.bz2 |
Fixes #1488: Removed use of deprecated functions in core.
git-svn-id: http://code.elgg.org/elgg/trunk@3947 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/activity.php')
-rw-r--r-- | engine/lib/activity.php | 12 |
1 files changed, 9 insertions, 3 deletions
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 +} |