@@ 93-98 (lines=6) @@ | ||
90 | $highlight = preg_quote($highlight, '/'); |
|
91 | $searchItems = explode(' ', $highlight); |
|
92 | ||
93 | foreach ($searchItems as $item) { |
|
94 | if (PMF_String::strlen($item) > 2) { |
|
95 | $question = PMF_Utils::setHighlightedString($question, $item); |
|
96 | $answer = PMF_Utils::setHighlightedString($answer, $item); |
|
97 | } |
|
98 | } |
|
99 | } |
|
100 | ||
101 | $linkVerifier = new PMF_Linkverifier($faqConfig); |
@@ 259-264 (lines=6) @@ | ||
256 | $searchItems = explode(' ', $searchterm); |
|
257 | ||
258 | if ($this->_config->get('search.enableHighlighting') && PMF_String::strlen($searchItems[0]) > 1) { |
|
259 | foreach ($searchItems as $item) { |
|
260 | if (PMF_String::strlen($item) > 2) { |
|
261 | $question = PMF_Utils::setHighlightedString($question, $item); |
|
262 | $answerPreview = PMF_Utils::setHighlightedString($answerPreview, $item); |
|
263 | } |
|
264 | } |
|
265 | } |
|
266 | ||
267 | // Build the link to the faq record |