From 269386b9cfa0e1558edde89442c6f571ef32c645 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 18 Jun 2008 13:34:58 +0000 Subject: Added generic listing and pagination functions git-svn-id: https://code.elgg.org/elgg/trunk@964 36083f99-b078-4883-b0ff-0f9b5a30f544 --- search/index.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'search/index.php') diff --git a/search/index.php b/search/index.php index da94ed493..33a32046f 100644 --- a/search/index.php +++ b/search/index.php @@ -17,19 +17,11 @@ // Get input $tag = get_input('tag'); - $offset = get_input('offset',0); $subtype = get_input('subtype'); $objecttype = get_input('object'); - $body = ""; - - if ($entities = get_entities_from_metadata("",$tag,"",$subtype,0,15,$offset)) { - - foreach($entities as $entity) { - $body .= elgg_view_entity($entity); - } - - } + $body = list_entities_from_metadata("", $tag, "", $subtype); + $body = elgg_view_layout('one_column',$body); page_draw(sprintf(elgg_echo('searchtitle'),$tag),$body); -- cgit v1.2.3