Skip to content
Snippets Groups Projects
Commit f66e6900 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #269911 by Freso: wrong trim used for search result.

parent 6f8293a5
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment