mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Wrong parameter count for preg_replace in get_context() (IMO we need no limit there - nils, you may check this again to be sure) - #34135
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8960 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d6843ca960
commit
88e56ee90c
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,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('/ +/', ' ', strtr($text, "\t\n\r\x0C ", ' '), $text);
|
$text = preg_replace('/ +/', ' ', strtr($text, "\t\n\r\x0C ", ' '));
|
||||||
|
|
||||||
$word_indizes = array();
|
$word_indizes = array();
|
||||||
if (sizeof($words))
|
if (sizeof($words))
|
||||||
|
|
Loading…
Add table
Reference in a new issue