aboutsummaryrefslogtreecommitdiff
path: root/search/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 17:50:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 17:50:22 +0000
commitca9242add1184021d51e5488580e0d722d089e2a (patch)
tree5284e4fca0d149d08868d47fdd79de36ed44bdff /search/index.php
parentc3f035c5602b931276818c3ca5bb503c2b020563 (diff)
downloadelgg-ca9242add1184021d51e5488580e0d722d089e2a.tar.gz
elgg-ca9242add1184021d51e5488580e0d722d089e2a.tar.bz2
The search page now takes more options.
git-svn-id: https://code.elgg.org/elgg/trunk@1131 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'search/index.php')
-rw-r--r--search/index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/search/index.php b/search/index.php
index 33a32046f..e5d230847 100644
--- a/search/index.php
+++ b/search/index.php
@@ -18,9 +18,14 @@
// Get input
$tag = get_input('tag');
$subtype = get_input('subtype');
- $objecttype = get_input('object');
+ if (!$objecttype = get_input('object')) {
+ $objecttype = "";
+ }
+ if (!$md_type = get_input('tagtype')) {
+ $md_type = "";
+ }
- $body = list_entities_from_metadata("", $tag, "", $subtype);
+ $body = list_entities_from_metadata($md_type, $tag, $objecttype, $subtype);
$body = elgg_view_layout('one_column',$body);
page_draw(sprintf(elgg_echo('searchtitle'),$tag),$body);