Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f66e6900
Commit
f66e6900
authored
Apr 11, 2010
by
Dries
Browse files
- Patch
#269911
by Freso: wrong trim used for search result.
parent
6f8293a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/search/search.module
View file @
f66e6900
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment