diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 18:50:07 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 18:50:07 +0000 |
commit | 86f6de74fb64a1998e3ef7ddd7637f2d4229cc36 (patch) | |
tree | 87835cef9a2bdd77314e1986491078760f477128 /mod/search | |
parent | 0f736f6bb398e66e75308e579ec8f01fbdde5af4 (diff) | |
download | elgg-86f6de74fb64a1998e3ef7ddd7637f2d4229cc36.tar.gz elgg-86f6de74fb64a1998e3ef7ddd7637f2d4229cc36.tar.bz2 |
Refs #2994 added group search fix from 1.7 branch to trunk
git-svn-id: http://code.elgg.org/elgg/trunk@8916 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search')
-rw-r--r-- | mod/search/search_hooks.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php index ae8433409..428d6f700 100644 --- a/mod/search/search_hooks.php +++ b/mod/search/search_hooks.php @@ -93,11 +93,11 @@ function search_groups_hook($hook, $type, $value, $params) { // add the volatile data for why these entities have been returned. foreach ($entities as $entity) { - $description = search_get_highlighted_relevant_substrings($entity->description, $query); - $entity->setVolatileData('search_matched_title', $description); - $name = search_get_highlighted_relevant_substrings($entity->name, $query); - $entity->setVolatileData('search_matched_description', $name); + $entity->setVolatileData('search_matched_title', $name); + + $description = search_get_highlighted_relevant_substrings($entity->description, $query); + $entity->setVolatileData('search_matched_description', $description); } return array( |