From 53062715e71e7ce4bf6310731dc1ec102fb87f1c Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 27 Mar 2011 01:31:44 +0000 Subject: Fixes #3086 using full_view instead of full git-svn-id: http://code.elgg.org/elgg/trunk@8866 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/annotation/generic_comment.php | 4 ++-- views/default/object/plugin.php | 2 +- views/default/page/components/gallery.php | 5 ----- views/default/page/components/list.php | 5 ----- views/json/entities/entity_list.php | 4 ++-- 5 files changed, 5 insertions(+), 15 deletions(-) (limited to 'views') diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index 2dcf7fefd..4a3407e1a 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -3,14 +3,14 @@ * Elgg generic comment view * * @uses $vars['annotation'] ElggAnnotation object - * @uses $vars['full'] Display fill view or brief view + * @uses $vars['full_view'] Display fill view or brief view */ if (!isset($vars['annotation'])) { return true; } -$full_view = elgg_extract('full', $vars, true); +$full_view = elgg_extract('full_view', $vars, true); $comment = $vars['annotation']; diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php index af1ccd677..2facca97a 100644 --- a/views/default/object/plugin.php +++ b/views/default/object/plugin.php @@ -11,7 +11,7 @@ $plugin = $vars['entity']; if (!$plugin->isValid()) { echo elgg_view('object/plugin/invalid', $vars); -} elseif ($vars['full']) { +} elseif ($vars['full_view']) { echo elgg_view('object/plugin/advanced', $vars); } else { echo elgg_view('object/plugin/simple', $vars); diff --git a/views/default/page/components/gallery.php b/views/default/page/components/gallery.php index 8d3052ed9..1ba896836 100644 --- a/views/default/page/components/gallery.php +++ b/views/default/page/components/gallery.php @@ -23,11 +23,6 @@ $position = elgg_extract('position', $vars, 'after'); $num_columns = 4; -// @todo standardize on full_view - will require backward compatible code -if (isset($vars['full_view'])) { - $vars['full'] = $vars['full_view']; -} - if ($pagination && $count) { $nav .= elgg_view('navigation/pagination', array( 'offset' => $offset, diff --git a/views/default/page/components/list.php b/views/default/page/components/list.php index 3a4fc21c8..ae951c89f 100644 --- a/views/default/page/components/list.php +++ b/views/default/page/components/list.php @@ -25,11 +25,6 @@ $pagination = elgg_extract('pagination', $vars, true); $offset_key = elgg_extract('offset_key', $vars, 'offset'); $position = elgg_extract('position', $vars, 'after'); -// @todo standardize on full_view - will require backward compatible code -if (isset($vars['full_view'])) { - $vars['full'] = $vars['full_view']; -} - $list_class = 'elgg-list'; if (isset($vars['list_class'])) { $list_class = "{$vars['list_class']} $list_class"; diff --git a/views/json/entities/entity_list.php b/views/json/entities/entity_list.php index f3d388f21..b583588c3 100644 --- a/views/json/entities/entity_list.php +++ b/views/json/entities/entity_list.php @@ -1,10 +1,10 @@ 0) { foreach($entities as $entity) { - echo elgg_view_entity($entity, $fullview); + echo elgg_view_entity($entity, $full_view); } } -- cgit v1.2.3