]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated tags library to use new sql functions
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Dec 2010 20:33:45 +0000 (20:33 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Dec 2010 20:33:45 +0000 (20:33 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7597 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/tags.php

index 9e81f4601c0e8829e0009d09984a747bd517eb1e..ca46a698b4d4ce95fdfeeef3b889c3194da61388 100644 (file)
@@ -178,9 +178,9 @@ function elgg_get_tags(array $options = array()) {
 
        $wheres[] = elgg_get_entity_type_subtype_where_sql('e', $options['types'],
                $options['subtypes'], $options['type_subtype_pairs']);
-       $wheres[] = elgg_get_entity_site_where_sql('e', $options['site_guids']);
-       $wheres[] = elgg_get_entity_owner_where_sql('e', $options['owner_guids']);
-       $wheres[] = elgg_get_entity_container_where_sql('e', $options['container_guids']);
+       $wheres[] = elgg_get_guid_based_where_sql('e.site_guid', $options['site_guids']);
+       $wheres[] = elgg_get_guid_based_where_sql('e.owner_guid', $options['owner_guids']);
+       $wheres[] = elgg_get_guid_based_where_sql('e.container_guid', $options['container_guids']);
        $wheres[] = elgg_get_entity_time_where_sql('e', $options['created_time_upper'],
                $options['created_time_lower'], $options['modified_time_upper'], $options['modified_time_lower']);