aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sites.php6
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);
}
/**