aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-30 15:13:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-30 15:13:20 +0000
commit88e56ee90cdfe6b24533108a5fb29505e99a2f76 (patch)
treed143f9cbbb54f90e5c591ebe8a41e3c024580761 /phpBB
parentd6843ca9608cbdc5160b56c2cbdd55ee391f337a (diff)
downloadforums-88e56ee90cdfe6b24533108a5fb29505e99a2f76.tar
forums-88e56ee90cdfe6b24533108a5fb29505e99a2f76.tar.gz
forums-88e56ee90cdfe6b24533108a5fb29505e99a2f76.tar.bz2
forums-88e56ee90cdfe6b24533108a5fb29505e99a2f76.tar.xz
forums-88e56ee90cdfe6b24533108a5fb29505e99a2f76.zip
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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_content.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 33df0314a7..a15efbcebb 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -238,7 +238,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
function get_context($text, $words, $length = 400)
{
// 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();
if (sizeof($words))