diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-09 20:44:34 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-09 20:44:34 +0000 |
commit | 867c8c94a1bed4bc862bc22f05922a5d9492b401 (patch) | |
tree | 119a91d5ba0276e0be3ce1c627b28ebe124144c0 /mod/search/views/default | |
parent | f803e43dbb0d81c29ad47ddab850cd4a637eb975 (diff) | |
download | elgg-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/default')
-rw-r--r-- | mod/search/views/default/search/comments/listing.php | 5 | ||||
-rw-r--r-- | mod/search/views/default/search/listing.php | 5 |
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', ) )); |