aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmayil Khayredinov <ismayil.khayredinov@hypejunction.com>2012-01-21 23:53:53 +0100
committerIsmayil Khayredinov <ismayil.khayredinov@hypejunction.com>2012-01-21 23:53:53 +0100
commitfdcc889ccc989968239d8a43636fb77c1570fed2 (patch)
treefa37f36096c2313e25371fba8d6951abd22b1317
parentada8737fa50d1aeaa33db8a1c1d740a6da449829 (diff)
downloadelgg-fdcc889ccc989968239d8a43636fb77c1570fed2.tar.gz
elgg-fdcc889ccc989968239d8a43636fb77c1570fed2.tar.bz2
fix for deprecated use of elgg_get_objects
-rw-r--r--engine/classes/ElggUser.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/engine/classes/ElggUser.php b/engine/classes/ElggUser.php
index a1c7147a5..d137c20ae 100644
--- a/engine/classes/ElggUser.php
+++ b/engine/classes/ElggUser.php
@@ -450,7 +450,14 @@ class ElggUser extends ElggEntity
* @return array|false
*/
public function getObjects($subtype = "", $limit = 10, $offset = 0) {
- return get_user_objects($this->getGUID(), $subtype, $limit, $offset);
+ $params = array(
+ 'type' => 'object',
+ 'subtype' => $subtype,
+ 'owner_guid' => $this->getGUID(),
+ 'limit' => $limit,
+ 'offset' => $offset
+ );
+ return elgg_get_entities($params);
}
/**