Skip to content

Commit

Permalink
Merge branch '7.3' of https://github.com/boonex/dolphin.pro into 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Oct 11, 2017
2 parents 9d8e9b1 + 8d4bdd5 commit 176bd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/boonex/forum/classes/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function getSearchResultsXML ($text, $type, $forum, $u, $disp, $start = 0, $isWh
if ($text) {
reset($ws);
while (list (,$w) = each ($ws)) {
$wreg = str_replace(array('(', ')'), array('\\(', '\\)'), $w);
$wreg = preg_quote($w, '/');
$r['topic_title'] = preg_replace ("/($wreg)/i", "<span style=\"background-color:yellow\">$w</span>", $r['topic_title']);
}
}
Expand Down

0 comments on commit 176bd00

Please sign in to comment.