]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fix for deprecated use of elgg_get_objects
authorIsmayil Khayredinov <ismayil.khayredinov@hypejunction.com>
Sat, 21 Jan 2012 22:53:53 +0000 (23:53 +0100)
committerIsmayil Khayredinov <ismayil.khayredinov@hypejunction.com>
Sat, 21 Jan 2012 22:53:53 +0000 (23:53 +0100)
engine/classes/ElggUser.php

index a1c7147a58ffe7f0ab25401fd79b12658c09a24c..d137c20ae9cd609de4d6b5d9cd3b08fd587e6943 100644 (file)
@@ -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);
        }
 
        /**