diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-02-25 12:58:21 -0800 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-02-25 12:58:21 -0800 |
commit | 6c94d823bbea21a5ab5672a3d7780ad598e1c665 (patch) | |
tree | 52759cb28c782fab41dec73f806091dd350693ce /mod/search/pages | |
parent | 6c7ff96f073dc35a9e43e80e80121f2b0463b06d (diff) | |
download | elgg-6c94d823bbea21a5ab5672a3d7780ad598e1c665.tar.gz elgg-6c94d823bbea21a5ab5672a3d7780ad598e1c665.tar.bz2 |
Fixes #3550. Merged slightly modified pull request 166 from sembrestels.
Diffstat (limited to 'mod/search/pages')
-rw-r--r-- | mod/search/pages/search/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
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\""))); |