From eaa0e26b19e46e0391644251ec09fe2451c67f35 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 10 Mar 2008 16:55:25 +0000 Subject: Updated ref to get_objects git-svn-id: https://code.elgg.org/elgg/trunk@143 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sites.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine') 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); } /** -- cgit v1.2.3