diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-17 15:56:05 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-17 15:56:05 +0000 |
commit | 739f52e2d9e9c7b874efccdbb334e19c1905271f (patch) | |
tree | 0282ed05500282f907de16bf1dcecebad334a0d6 /engine | |
parent | f94edbcfc6edf1458c2608952929fba421fb3ac5 (diff) | |
download | elgg-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.php | 4 |
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; |