diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-14 08:04:28 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-14 08:04:28 +0000 |
commit | aa5bb3f0bc17d858831412da82eef805ecafac89 (patch) | |
tree | 1a8c281c27778755bd9db83f8aa5822706a3b5db /engine/lib/relationships.php | |
parent | bddba2985d89ff3ed9f52681b37cdce7a9c22bd9 (diff) | |
download | elgg-aa5bb3f0bc17d858831412da82eef805ecafac89.tar.gz elgg-aa5bb3f0bc17d858831412da82eef805ecafac89.tar.bz2 |
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
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r-- | engine/lib/relationships.php | 10 |
1 files changed, 5 insertions, 5 deletions
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); } /** |