Commit f66e6900 authored by Dries's avatar Dries

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

parent 6f8293a5
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment