From 7dd75ce9cdb524ff27ada917608c2cc1dc31f499 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Mar 2011 15:01:25 +0000 Subject: Refs #3085 moved full_view out of elgg_view_list_item() into $vars to be consistent with other elgg_view* functions git-svn-id: http://code.elgg.org/elgg/trunk@8659 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib/views.php') diff --git a/engine/lib/views.php b/engine/lib/views.php index a66b7748b..27abf8f8e 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1247,7 +1247,6 @@ function elgg_view_form($action, $form_vars = array(), $body_vars = array()) { * View an item in a list * * @param object $item ElggEntity or ElggAnnotation - * @param bool $full_view Whether to render the full view of the object * @param array $vars Additional parameters for the rendering * * @return string @@ -1255,6 +1254,9 @@ function elgg_view_form($action, $form_vars = array(), $body_vars = array()) { * @access private */ function elgg_view_list_item($item, $full_view, array $vars = array()) { + + $full_view = elgg_extract('full_view', $vars, false); + switch ($item->getType()) { case 'user': case 'object': -- cgit v1.2.3