diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-07 20:57:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-07 20:57:32 +0000 |
commit | 24e3ff747614364d0d44fc1a7644f164146c66e1 (patch) | |
tree | cab9495aa3a6daf5c1aa3bac6de61e3436e77380 /mod/search/index.php | |
parent | 413ea817c78a2cd7cbe3bebad1623daaaeea6394 (diff) | |
download | elgg-24e3ff747614364d0d44fc1a7644f164146c66e1.tar.gz elgg-24e3ff747614364d0d44fc1a7644f164146c66e1.tar.bz2 |
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
Diffstat (limited to 'mod/search/index.php')
-rw-r--r-- | mod/search/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); |