@@ 264-269 (lines=6) @@ | ||
261 | $searchItems = explode(' ', $searchTerm); |
|
262 | ||
263 | if ($this->_config->get('search.enableHighlighting') && Strings::strlen($searchItems[0]) > 1) { |
|
264 | foreach ($searchItems as $item) { |
|
265 | if (Strings::strlen($item) > 2) { |
|
266 | $question = Utils::setHighlightedString($question, $item); |
|
267 | $answerPreview = Utils::setHighlightedString($answerPreview, $item); |
|
268 | } |
|
269 | } |
|
270 | } |
|
271 | ||
272 | // Build the link to the faq record |
@@ 112-117 (lines=6) @@ | ||
109 | $highlight = preg_quote($highlight, '/'); |
|
110 | $searchItems = explode(' ', $highlight); |
|
111 | ||
112 | foreach ($searchItems as $item) { |
|
113 | if (Strings::strlen($item) > 2) { |
|
114 | $question = Utils::setHighlightedString($question, $item); |
|
115 | $answer = Utils::setHighlightedString($answer, $item); |
|
116 | } |
|
117 | } |
|
118 | } |
|
119 | ||
120 | $linkVerifier = new Linkverifier($faqConfig); |