aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-09 20:44:34 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-09 20:44:34 +0000
commit867c8c94a1bed4bc862bc22f05922a5d9492b401 (patch)
tree119a91d5ba0276e0be3ce1c627b28ebe124144c0 /mod/search/views
parentf803e43dbb0d81c29ad47ddab850cd4a637eb975 (diff)
downloadelgg-867c8c94a1bed4bc862bc22f05922a5d9492b401.tar.gz
elgg-867c8c94a1bed4bc862bc22f05922a5d9492b401.tar.bz2
Updated search to allow filtering of results by clicking on submenu items.
Fixes #1358: Using raw mysql_query() / fetch() to get ft_min/max vars since they aren't set on some versions of MySQL. git-svn-id: http://code.elgg.org/elgg/trunk@3645 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views')
-rw-r--r--mod/search/views/default/search/comments/listing.php5
-rw-r--r--mod/search/views/default/search/listing.php5
2 files changed, 6 insertions, 4 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php
index 8ba0a2288..58353a110 100644
--- a/mod/search/views/default/search/comments/listing.php
+++ b/mod/search/views/default/search/comments/listing.php
@@ -21,10 +21,11 @@ $body = elgg_view_title($title_str);
$query = htmlspecialchars(http_build_query(
array(
'q' => $vars['params']['query'],
- 'type' => $vars['params']['type'],
+ 'entity_type' => $vars['params']['type'],
+ 'entity_subtype' => $vars['params']['subtype'],
'limit' => get_input('limit', 10),
'offset' => get_input('offset', 0),
- 'subtype' => $vars['params']['subtype']
+ 'search_type' => 'comments',
)
));
diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php
index 23a6a44e8..37850c911 100644
--- a/mod/search/views/default/search/listing.php
+++ b/mod/search/views/default/search/listing.php
@@ -25,10 +25,11 @@ $body = elgg_view_title($title_str);
$query = htmlspecialchars(http_build_query(
array(
'q' => $vars['params']['query'],
- 'type' => $vars['params']['type'],
+ 'entity_type' => $vars['params']['type'],
+ 'entity_subtype' => $vars['params']['subtype'],
'limit' => get_input('limit', 10),
'offset' => get_input('offset', 0),
- 'subtype' => $vars['params']['subtype']
+ 'search_type' => 'entities',
)
));