aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-17 15:56:05 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-17 15:56:05 +0000
commit739f52e2d9e9c7b874efccdbb334e19c1905271f (patch)
tree0282ed05500282f907de16bf1dcecebad334a0d6 /engine
parentf94edbcfc6edf1458c2608952929fba421fb3ac5 (diff)
downloadelgg-739f52e2d9e9c7b874efccdbb334e19c1905271f.tar.gz
elgg-739f52e2d9e9c7b874efccdbb334e19c1905271f.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* BUGFIX: Added config git-svn-id: https://code.elgg.org/elgg/trunk@236 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index ca3f795f3..d42dbfd5f 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -432,6 +432,8 @@
*/
function get_entities($type = "", $subtype = "", $owner_guid = 0, $order_by = "time_created desc", $limit = 10, $offset = 0)
{
+ global $CONFIG;
+
$type = sanitise_string($type);
$subtype = get_subtype_id($subtype);
$owner_guid = (int)$owner_guid;
@@ -474,6 +476,8 @@
*/
function get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship = false, $type = "", $subtype = "", $owner_guid = 0, $order_by = "time_created desc", $limit = 10, $offset = 0)
{
+ global $CONFIG;
+
$relationship = sanitise_string($relationship);
$relationship_guid = (int)$relationship_guid;
$inverse_relationship = (bool)$inverse_relationship;