From 4b863b2fd7735244f78f593b472363e35dd8d8b5 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 19 Feb 2009 17:28:22 +0000 Subject: Fixed parameter errors in site-related functions. Fixes #793 git-svn-id: https://code.elgg.org/elgg/trunk@2824 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'engine/lib') 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()); } /** -- cgit v1.2.3