diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-11 14:52:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-11 14:52:13 +0000 |
commit | f66e690098fba256001658837d95459c32467356 (patch) | |
tree | e89b317bc4f084b398da7783075eb0f1e3cde97f /modules/search | |
parent | 6f8293a5ae3350f6b5b6877e55accf1b1577d7c0 (diff) | |
download | brdo-f66e690098fba256001658837d95459c32467356.tar.gz brdo-f66e690098fba256001658837d95459c32467356.tar.bz2 |
- Patch #269911 by Freso: wrong trim used for search result.
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/search.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search/search.module b/modules/search/search.module index 376a98842..6c23c1bb4 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -1077,7 +1077,7 @@ function search_excerpt($keys, $text) { // If we didn't find anything, return the beginning. if (count($ranges) == 0) { - return truncate_utf8($text, 256) . ' ...'; + return truncate_utf8($text, 256, TRUE, TRUE); } // Sort the text ranges by starting position. |