1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

do not overwrite .searchhighlight

This commit is contained in:
marj
2009-10-29 11:38:11 +00:00
parent 68aaa99465
commit fb8282c928

View File

@@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/content.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/content/content.php,v $
| $Revision: 1.19 $ | $Revision: 1.20 $
| $Date: 2008-05-25 08:26:11 $ | $Date: 2009-10-29 11:38:11 $
| $Author: e107steved $ | $Author: marj_nl_fr $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
*/ */
@@ -236,7 +236,7 @@ function parsesearch($text, $match, $amount){
$text = "...".substr($text, ($pos-140), 280)."..."; $text = "...".substr($text, ($pos-140), 280)."...";
} }
} }
$text = preg_replace("/".$match."/i", "<span class='searchhighlight' style='color:red;'>$match</span>", $text); $text = preg_replace("/".$match."/i", "<span class='searchhighlight'>$match</span>", $text);
return($text); return($text);
} }