|
From: Paul S. O. <ps...@us...> - 2001-11-09 12:32:26
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv25448
Modified Files:
viewtopic.php
Log Message:
Corrected for space within highlighted words, this is the version running on the main site
Index: viewtopic.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewtopic.php,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -r1.129 -r1.130
*** viewtopic.php 2001/11/09 12:24:36 1.129
--- viewtopic.php 2001/11/09 12:32:23 1.130
***************
*** 501,509 ****
for($i = 0; $i < count($words); $i++)
{
! $highlight_match[] = "#\b(" . str_replace("\*", ".*?", preg_quote($words[$i], "#")) . ")\b#i";
! $highlight_replace[] = "<font color=\"#FF0000\"><b>\\1</b></font>";
}
! $highlight_active = ( count($words) ) ? true : false;
}
--- 501,512 ----
for($i = 0; $i < count($words); $i++)
{
! if( trim($words[$i] != "" )
! {
! $highlight_match[] = "#\b(" . str_replace("\*", ".*?", preg_quote($words[$i], "#")) . ")\b#i";
! $highlight_replace[] = "<font color=\"#FF0000\"><b>\\1</b></font>";
! }
}
! $highlight_active = ( count($highlight_match) ) ? true : false;
}
|