From 869a5dfcdb13f80efe912c6337579e4bc00a4526 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 1 Nov 2009 23:25:25 +0000 Subject: fixed some display issues with the common lists --- lib/tidypics.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tidypics.php b/lib/tidypics.php index 38afc27f2..a5b713ee4 100644 --- a/lib/tidypics.php +++ b/lib/tidypics.php @@ -169,8 +169,26 @@ $count = tp_get_entities($type, $subtype, $owner_guid, "", $limit, $offset, true); $entities = tp_get_entities($type, $subtype, $owner_guid, "", $limit, $offset); - return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination); + return tp_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination); + } + + function tp_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtypetoggle = false, $pagination = true) { + $context = get_context(); + + $html = elgg_view('tidypics/gallery',array( + 'entities' => $entities, + 'count' => $count, + 'offset' => $offset, + 'limit' => $limit, + 'baseurl' => $_SERVER['REQUEST_URI'], + 'fullview' => $fullview, + 'context' => $context, + 'viewtypetoggle' => $viewtypetoggle, + 'viewtype' => get_input('search_viewtype','list'), + 'pagination' => $pagination + )); + return $html; } /** -- cgit v1.2.3