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/views.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/views.php')
-rw-r--r-- | engine/lib/views.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 )); |