]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
correct singual usage of type in elgg_get_entities_* functions - found
authorJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:17:27 +0000 (14:17 +0200)
committerJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:17:27 +0000 (14:17 +0200)
more bad usage

engine/lib/deprecated-1.8.php
engine/lib/relationships.php
mod/categories/pages/categories/listing.php

index 622b58212e5edb48d7e055cda83b7dd112166335..033af90fde8a9c0d3fc2f4b996437a4a38173556 100644 (file)
@@ -87,7 +87,7 @@ function list_entities_from_access_id($access_id, $entity_type = "", $entity_sub
        elgg_deprecated_notice("All list_entities* functions were deprecated in 1.8.  Use elgg_list_entities* instead.", 1.8);
 
        echo elgg_list_entities_from_access_id(array('access_id' => $access_id,
-               'types' => $entity_type, 'subtype' => $entity_subtype, 'owner_guids' => $owner_guid,
+               'type' => $entity_type, 'subtype' => $entity_subtype, 'owner_guids' => $owner_guid,
                'limit' => $limit, 'full_view' => $fullview, 'list_type_toggle' => $listtypetoggle,
                'pagination' => $pagination,));
 }
@@ -1314,7 +1314,7 @@ function list_entities_from_metadata($meta_name, $meta_value = "", $entity_type
        $options = array(
                'metadata_name' => $meta_name,
                'metadata_value' => $meta_value,
-               'types' => $entity_type,
+               'type' => $entity_type,
                'subtype' => $entity_subtype,
                'limit' => $limit,
                'offset' => $offset,
@@ -2120,7 +2120,7 @@ $fullview = true, $listtypetoggle = false, $pagination = true, $order_by = '') {
                'relationship' => $relationship,
                'relationship_guid' => $relationship_guid,
                'inverse_relationship' => $inverse_relationship,
-               'types' => $type,
+               'type' => $type,
                'subtype' => $subtype,
                'owner_guid' => $owner_guid,
                'order_by' => $order_by,
index 09d541e22309db1912ff01e2e4807b78c60efe6e..7b42ed5be0d53a98b74e1c8e6b2c0920c7d879c3 100644 (file)
@@ -507,7 +507,7 @@ function get_attachments($guid, $type = "") {
                                        'relationship' => 'attached',
                                        'relationship_guid' => $guid,
                                        'inverse_relationship' => false,
-                                       'types' => $type,
+                                       'type' => $type,
                                        'subtypes' => '',
                                        'owner_guid' => 0,
                                        'order_by' => 'time_created desc',
index 4e677d5c426d952b47f40e0dd9e6b62f4789a9dd..d51e6c19e19b0f84c2542b351976f6c3814f1fa1 100644 (file)
@@ -15,7 +15,7 @@ $type = get_input("type", 'object');
 $params = array(
        'metadata_name' => 'universal_categories',
        'metadata_value' => $category,
-       'types' => $type,
+       'type' => $type,
        'subtype' => $subtype,
        'owner_guid' => $owner_guid,
        'limit' => $limit,