aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-22 05:44:28 -0800
committerCash Costello <cash.costello@gmail.com>2012-01-22 05:44:28 -0800
commitf3aa31ad638d7c24f67cb20312a294bf87ebc80e (patch)
treefb7190716f1f20ec60c22267468d949e7728e565
parent68529e868e700f56a293d9ad160ebaf15fa7675e (diff)
parentfdcc889ccc989968239d8a43636fb77c1570fed2 (diff)
downloadelgg-f3aa31ad638d7c24f67cb20312a294bf87ebc80e.tar.gz
elgg-f3aa31ad638d7c24f67cb20312a294bf87ebc80e.tar.bz2
Merge pull request #148 from hypeJunction/getObjects
Fixes #4319 - 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 d37a1a10d..e9cbc6cb2 100644
--- a/engine/classes/ElggUser.php
+++ b/engine/classes/ElggUser.php
@@ -457,7 +457,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);
}
/**