diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-01-22 05:44:28 -0800 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-01-22 05:44:28 -0800 |
commit | f3aa31ad638d7c24f67cb20312a294bf87ebc80e (patch) | |
tree | fb7190716f1f20ec60c22267468d949e7728e565 | |
parent | 68529e868e700f56a293d9ad160ebaf15fa7675e (diff) | |
parent | fdcc889ccc989968239d8a43636fb77c1570fed2 (diff) | |
download | elgg-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.php | 9 |
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); } /** |