diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 16:55:25 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 16:55:25 +0000 |
commit | eaa0e26b19e46e0391644251ec09fe2451c67f35 (patch) | |
tree | 12f3662607159d1472acb6e29755a0c2af43f927 | |
parent | 3754160dc9be4a5ef6240ac378d12bd57bb1ae3b (diff) | |
download | elgg-eaa0e26b19e46e0391644251ec09fe2451c67f35.tar.gz elgg-eaa0e26b19e46e0391644251ec09fe2451c67f35.tar.bz2 |
Updated ref to get_objects
git-svn-id: https://code.elgg.org/elgg/trunk@143 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/sites.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index 207faa2ef..b87a7361e 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -335,7 +335,7 @@ */ function get_site_objects($site_id, $type = "", $limit = 10, $offset = 0) { - global $CONFIG; + /*global $CONFIG; $site_id = (int)$site_id; $type = sanitise_string($type); @@ -349,7 +349,9 @@ if (!$type) return false; - return get_data("SELECT * from {$CONFIG->dbprefix}objects where site_id=$site_id and type_id={$type->id} and (access_id in {$access} or (access_id = 0 and owner_id = {$_SESSION['id']}))","row_to_elggobject"); + return get_data("SELECT * from {$CONFIG->dbprefix}objects where site_id=$site_id and type_id={$type->id} and (access_id in {$access} or (access_id = 0 and owner_id = {$_SESSION['id']}))","row_to_elggobject");
+ */
+ return get_objects(0,$type, $limit, $offset, $site_id); } /** |