aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 17:28:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 17:28:22 +0000
commit4b863b2fd7735244f78f593b472363e35dd8d8b5 (patch)
treec9140b7f00740132952af0eee65c1000d9a188a5 /engine/lib/users.php
parent5e8f59e1913f7912e27785be275243604b036f34 (diff)
downloadelgg-4b863b2fd7735244f78f593b472363e35dd8d8b5.tar.gz
elgg-4b863b2fd7735244f78f593b472363e35dd8d8b5.tar.bz2
Fixed parameter errors in site-related functions. Fixes #793
git-svn-id: https://code.elgg.org/elgg/trunk@2824 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php9
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());
}
/**