diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-18 13:34:58 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-18 13:34:58 +0000 |
commit | 269386b9cfa0e1558edde89442c6f571ef32c645 (patch) | |
tree | 8714e84ec6bcfca99bf3ee560024090d36cc6543 /search/index.php | |
parent | c3a4bafc3f3f0984e8751e00e024ab8c09e0ff1b (diff) | |
download | elgg-269386b9cfa0e1558edde89442c6f571ef32c645.tar.gz elgg-269386b9cfa0e1558edde89442c6f571ef32c645.tar.bz2 |
Added generic listing and pagination functions
git-svn-id: https://code.elgg.org/elgg/trunk@964 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'search/index.php')
-rw-r--r-- | search/index.php | 12 |
1 files changed, 2 insertions, 10 deletions
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);
|