From 867c8c94a1bed4bc862bc22f05922a5d9492b401 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 9 Nov 2009 20:44:34 +0000 Subject: 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 --- mod/search/views/default/search/comments/listing.php | 5 +++-- mod/search/views/default/search/listing.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'mod/search/views/default') 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', ) )); -- cgit v1.2.3