From aa5bb3f0bc17d858831412da82eef805ecafac89 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sun, 14 Nov 2010 08:04:28 +0000 Subject: Fixes #2334: Converted viewtype => listtype and viewtypetoggle => listtypetoggle. Did my best to maintain backwards compatibility but might have missed something... git-svn-id: http://code.elgg.org/elgg/trunk@7311 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine/lib/relationships.php') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index 0b6b9b607..f19c76e8b 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -418,7 +418,7 @@ function elgg_list_entities_from_relationship(array $options = array()) { function list_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship = false, $type = ELGG_ENTITIES_ANY_VALUE, $subtype = ELGG_ENTITIES_ANY_VALUE, $owner_guid = 0, $limit = 10, -$fullview = true, $viewtypetoggle = false, $pagination = true) { +$fullview = true, $listtypetoggle = false, $pagination = true) { elgg_deprecated_notice("list_entities_from_relationship was deprecated by elgg_list_entities_from_relationship()!", 1.8); return elgg_list_entities_from_relationship(array( @@ -430,7 +430,7 @@ $fullview = true, $viewtypetoggle = false, $pagination = true) { 'owner_guid' => $owner_guid, 'limit' => $limit, 'full_view' => $fullview, - 'view_type_toggle' => $viewtypetoggle, + 'list_type_toggle' => $listtypetoggle, 'pagination' => $pagination, )); } @@ -541,7 +541,7 @@ $subtype = "", $owner_guid = 0, $limit = 10, $offset = 0, $count = false, $site_ * @param int $owner_guid The owner (default: all) * @param int $limit The number of entities to display on a page * @param bool $fullview Whether or not to display the full view (default: true) - * @param bool $viewtypetoggle Whether or not to allow gallery view + * @param bool $listtypetoggle Whether or not to allow gallery view * @param bool $pagination Whether to display pagination (default: true) * * @return string The viewable list of entities @@ -549,7 +549,7 @@ $subtype = "", $owner_guid = 0, $limit = 10, $offset = 0, $count = false, $site_ function list_entities_by_relationship_count($relationship, $inverse_relationship = true, $type = "", $subtype = "", $owner_guid = 0, $limit = 10, $fullview = true, -$viewtypetoggle = false, $pagination = true) { +$listtypetoggle = false, $pagination = true) { $limit = (int) $limit; $offset = (int) get_input('offset'); @@ -558,7 +558,7 @@ $viewtypetoggle = false, $pagination = true) { $entities = get_entities_by_relationship_count($relationship, $inverse_relationship, $type, $subtype, $owner_guid, $limit, $offset); - return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination); + return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $listtypetoggle, $pagination); } /** -- cgit v1.2.3