git-svn-id: file:///svn/phpbb/trunk@7030 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-02-21 19:43:44 +00:00
parent 2602b11894
commit 213a83b519

View file

@ -2132,7 +2132,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
function get_context($text, $words, $length = 400) function get_context($text, $words, $length = 400)
{ {
// first replace all whitespaces with single spaces // first replace all whitespaces with single spaces
$text = preg_replace('/\s+/u', ' ', $text); $text = preg_replace('/ +/', ' ', strtr($text, "\t\n\r\x0C ", ' '), $text);
$word_indizes = array(); $word_indizes = array();
if (sizeof($words)) if (sizeof($words))