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/entities.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/entities.php')
-rw-r--r-- | engine/lib/entities.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 8a532b275..d52b86005 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -563,8 +563,13 @@ abstract class ElggEntity implements * @return array|false An array of entities or false on failure */ function getEntitiesFromRelationship($relationship, $inverse = false, $limit = 50, $offset = 0) { - return get_entities_from_relationship($relationship, $this->getGUID(), $inverse, - "", "", "", "time_created desc", $limit, $offset); + return elgg_get_entities_from_relationship(array( + 'relationship' => $relationship, + 'relationship_guid' => $this->getGUID(), + 'inverse_relationship' => $inverse, + 'limit' => $limit, + 'offset' => $offset + )); } /** @@ -575,8 +580,12 @@ abstract class ElggEntity implements * @return int|false The number of entities or false on failure */ function countEntitiesFromRelationship($relationship, $inverse_relationship = FALSE) { - return get_entities_from_relationship($relationship, $this->getGUID(), $inverse_relationship, "", "", "", - "time_created desc", null, null, TRUE); + return elgg_get_entities_from_relationship(array( + 'relationship' => $relationship, + 'relationship_guid' => $this->getGUID(), + 'inverse_relationship' => $inverse_relationship, + 'count' => TRUE + )); } /** |