From: Ismayil Khayredinov Date: Sat, 21 Jan 2012 22:53:53 +0000 (+0100) Subject: fix for deprecated use of elgg_get_objects X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fdcc889ccc989968239d8a43636fb77c1570fed2;p=lorea%2Felgg.git fix for deprecated use of elgg_get_objects --- 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); } /**