aboutsummaryrefslogtreecommitdiff
path: root/mod/search/search_hooks.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-02-25 12:58:21 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-02-25 12:58:21 -0800
commit6c94d823bbea21a5ab5672a3d7780ad598e1c665 (patch)
tree52759cb28c782fab41dec73f806091dd350693ce /mod/search/search_hooks.php
parent6c7ff96f073dc35a9e43e80e80121f2b0463b06d (diff)
downloadelgg-6c94d823bbea21a5ab5672a3d7780ad598e1c665.tar.gz
elgg-6c94d823bbea21a5ab5672a3d7780ad598e1c665.tar.bz2
Fixes #3550. Merged slightly modified pull request 166 from sembrestels.
Diffstat (limited to 'mod/search/search_hooks.php')
-rw-r--r--mod/search/search_hooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php
index ab000f6f6..2143a0d24 100644
--- a/mod/search/search_hooks.php
+++ b/mod/search/search_hooks.php
@@ -284,7 +284,7 @@ function search_tags_hook($hook, $type, $value, $params) {
}
$tags_str = implode('. ', $matched_tags_strs);
- $tags_str = search_get_highlighted_relevant_substrings($tags_str, $params['query']);
+ $tags_str = search_get_highlighted_relevant_substrings($tags_str, $params['query'], 30, 300, true);
$entity->setVolatileData('search_matched_title', $title_str);
$entity->setVolatileData('search_matched_description', $desc_str);