From 24e3ff747614364d0d44fc1a7644f164146c66e1 Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 7 Nov 2009 20:57:32 +0000 Subject: Moved default search hooks into search mod. Using MySQL's MATCH ... AGAINST instead of likes for most searches. Changed 'tag' to 'q' while maintaining backward compatibility. git-svn-id: http://code.elgg.org/elgg/trunk@3633 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/search/index.php') diff --git a/mod/search/index.php b/mod/search/index.php index 30f33f9f1..f9a96a60b 100644 --- a/mod/search/index.php +++ b/mod/search/index.php @@ -2,7 +2,9 @@ // $search_type == all || entities || trigger plugin hook $search_type = get_input('search_type', 'all'); -$query = sanitise_string(get_input('query', get_input('tag'))); + +// @todo there is a bug in get_input that makes variables have slashes sometimes. +$query = sanitise_string(stripslashes(get_input('q', get_input('tag', '', FALSE), FALSE))); // get limit and offset. override if on search dashboard, where only 2 // of each most recent entity types will be shown. @@ -117,7 +119,7 @@ call search */ -$layout = elgg_view_layout('single_column', '', $results_html); +$layout = elgg_view_layout('two_column_left_sidebar', '', $results_html); page_draw($title, $layout); -- cgit v1.2.3