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/views.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/lib/views.php') diff --git a/engine/lib/views.php b/engine/lib/views.php index 144595c50..9098950e3 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -800,14 +800,14 @@ function elgg_view_annotation(ElggAnnotation $annotation, $bypass = true, $debug * @param int $offset The current indexing offset * @param int $limit The number of entities to display per page * @param bool $fullview Whether or not to display the full view (default: true) - * @param bool $viewtypetoggle Whether or not to allow users to toggle to gallery view + * @param bool $listtypetoggle Whether or not to allow users to toggle to gallery view * @param bool $pagination Whether pagination is offered. * * @return string The list of entities * @access private */ function elgg_view_entity_list($entities, $count, $offset, $limit, $fullview = true, -$viewtypetoggle = true, $pagination = true) { +$listtypetoggle = true, $pagination = true) { $count = (int) $count; $limit = (int) $limit; @@ -827,8 +827,8 @@ $viewtypetoggle = true, $pagination = true) { 'baseurl' => $_SERVER['REQUEST_URI'], 'fullview' => $fullview, 'context' => $context, - 'viewtypetoggle' => $viewtypetoggle, - 'viewtype' => get_input('search_viewtype', 'list'), + 'listtypetoggle' => $listtypetoggle, + 'listtype' => get_input('listtype', 'list'), 'pagination' => $pagination )); -- cgit v1.2.3