From 6c94d823bbea21a5ab5672a3d7780ad598e1c665 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Sat, 25 Feb 2012 12:58:21 -0800 Subject: Fixes #3550. Merged slightly modified pull request 166 from sembrestels. --- mod/search/pages/search/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/search/pages') diff --git a/mod/search/pages/search/index.php b/mod/search/pages/search/index.php index 91817096b..fcd95c43e 100644 --- a/mod/search/pages/search/index.php +++ b/mod/search/pages/search/index.php @@ -257,7 +257,11 @@ if ($search_type != 'entities' || $search_type == 'all') { } // highlight search terms -$searched_words = search_remove_ignored_words($display_query, 'array'); +if ($search_type == 'tags') { + $searched_words = array($display_query); +} else { + $searched_words = search_remove_ignored_words($display_query, 'array'); +} $highlighted_query = search_highlight_words($searched_words, $display_query); $body = elgg_view_title(elgg_echo('search:results', array("\"$highlighted_query\""))); -- cgit v1.2.3