diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 94cf9684a..66d740e4b 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -185,7 +185,8 @@ * @param int $offset Any indexing offset
*/
function getSites($subtype="", $limit = 10, $offset = 0) {
- return get_site_users($this->getGUID(), $subtype, $limit, $offset);
+ // return get_site_users($this->getGUID(), $subtype, $limit, $offset);
+ return get_user_sites($this->getGUID(), $subtype, $limit, $offset);
}
/**
@@ -195,7 +196,8 @@ * @return true|false
*/
function addToSite($site_guid) {
- return add_site_user($this->getGUID(), $site_guid);
+ // return add_site_user($this->getGUID(), $site_guid);
+ return add_site_user($site_guid, $this->getGUID());
}
/**
@@ -205,7 +207,8 @@ * @return true|false
*/
function removeFromSite($site_guid) {
- return remove_site_user($this->getGUID(), $site_guid);
+ //return remove_site_user($this->getGUID(), $site_guid);
+ return remove_site_user($site_guid, $this->getGUID());
}
/**
|