From 28fe2df8934f4c18bc472cb8a4945184fe0cad93 Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 2 Apr 2008 10:45:21 +0000 Subject: Marcus Povey * Entity type/ subtype functional git-svn-id: https://code.elgg.org/elgg/trunk@340 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 4 ++-- engine/lib/metadata.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 26664757a..0a06b2afe 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -218,7 +218,7 @@ $entity_guid = (int)$entity_guid; $entity_type = sanitise_string($entity_type); - $entity_subtype = get_subtype_id($entity_subtype); + $entity_subtype = get_subtype_id($entity_type, $entity_subtype); $name = get_metastring_id($name); $value = get_metastring_id($value); $owner_guid = (int)$owner_guid; @@ -339,7 +339,7 @@ $sum = sanitise_string($sum); $entity_guid = (int)$entity_id; $entity_type = sanitise_string($entity_type); - $entity_subtype = get_subtype_id($entity_subtype); + $entity_subtype = get_subtype_id($entity_type, $entity_subtype); $name = get_metastring_id($name); $access = get_access_list(); diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 83336cd94..eb5096f3e 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -309,7 +309,7 @@ $meta_value = get_metastring_id($meta_value); $entity_type = sanitise_string($entity_type); - $entity_subtype = get_subtype_id($entity_subtype); + $entity_subtype = get_subtype_id($entity_type, $entity_subtype); $limit = (int)$limit; $offset = (int)$offset; $order_by = sanitise_string($order_by); -- cgit v1.2.3