diff options
Diffstat (limited to 'engine/classes/ElggSite.php')
-rw-r--r-- | engine/classes/ElggSite.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engine/classes/ElggSite.php b/engine/classes/ElggSite.php index 6c70d176b..93d442e0a 100644 --- a/engine/classes/ElggSite.php +++ b/engine/classes/ElggSite.php @@ -204,7 +204,14 @@ class ElggSite extends ElggEntity { * @return array of ElggUsers */ public function getMembers($limit = 10, $offset = 0) { - get_site_members($this->getGUID(), $limit, $offset); + return elgg_get_entities_from_relationship(array( + 'relationship' => 'member_of_site', + 'relationship_guid' => $this->getGUID(), + 'inverse_relationship' => TRUE, + 'types' => 'user', + 'limit' => $limit, + 'offset' => $offset + )); } /** |