aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJonathan Stanley <shs@users.sourceforge.net>2007-04-13 15:33:22 +0000
committerJonathan Stanley <shs@users.sourceforge.net>2007-04-13 15:33:22 +0000
commit5cde784419c77fe808e03b47007ef8f12fa83049 (patch)
treea32717e90ef1f77b4d0f3a26a0799f4a72e53a34 /phpBB/includes/functions.php
parent59c4fad29693584f44fe3acf4de12291c4d8f170 (diff)
downloadforums-5cde784419c77fe808e03b47007ef8f12fa83049.tar
forums-5cde784419c77fe808e03b47007ef8f12fa83049.tar.gz
forums-5cde784419c77fe808e03b47007ef8f12fa83049.tar.bz2
forums-5cde784419c77fe808e03b47007ef8f12fa83049.tar.xz
forums-5cde784419c77fe808e03b47007ef8f12fa83049.zip
Revert and undoing bug #9736
Won't fix, at least for 3.0.x. Re-review come 3.2.x and perhaps may be able to get localised prefixes, so something like: Sv: Re: Antwort: <Subject> ... doesn't happen. :P git-svn-id: file:///svn/phpbb/trunk@7354 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 61aba60146..d20002dd96 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3295,13 +3295,11 @@ function get_preg_expression($mode)
*/
function truncate_string($string, $max_length = 60, $allow_reply = true, $append = '')
{
- global $user;
-
$chars = array();
$strip_reply = false;
$stripped = false;
- if ($allow_reply && strpos($string, $user->lang['SUBJECT_CONCERNING_PREFIX']) === 0)
+ if ($allow_reply && strpos($string, 'Re: ') === 0)
{
$strip_reply = true;
$string = substr($string, 4);
@@ -3320,7 +3318,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append
if ($strip_reply)
{
- $string = $user->lang['SUBJECT_CONCERNING_PREFIX'] . $string;
+ $string = 'Re: ' . $string;
}
if ($append != '' && $stripped)