[Fusionforge-commits] r15581 - in branches/Branch_5_2: . src/plugins/globalsearch/www

Roland Mas lolando at fusionforge.org
Thu May 24 16:42:18 CEST 2012


Author: lolando
Date: 2012-05-24 16:42:17 +0200 (Thu, 24 May 2012)
New Revision: 15581

Modified:
   branches/Branch_5_2/
   branches/Branch_5_2/src/plugins/globalsearch/www/index.php
Log:
Removed a call to deprecated eregi_replace()

Modified: branches/Branch_5_2/src/plugins/globalsearch/www/index.php
===================================================================
--- branches/Branch_5_2/src/plugins/globalsearch/www/index.php	2012-05-24 14:14:04 UTC (rev 15580)
+++ branches/Branch_5_2/src/plugins/globalsearch/www/index.php	2012-05-24 14:42:17 UTC (rev 15581)
@@ -60,7 +60,7 @@
                 return ' ';
         }
         $re=implode($word_array,'|');
-        return eregi_replace("($re)",'<span style="background-color:pink">\1</span>',$text);
+        return preg_replace("/($re)/i",'<span style="background-color:pink">\1</span>',$text);
 }
 
 $HTML->header(array('title'=>'Search','pagename'=>'search'));




More information about the Fusionforge-commits mailing list