From e9584ca3e293fc1902eda9094da904ed9d7d726d Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 24 May 2004 10:04:59 +0000 Subject: [PATCH] Fix for bug 1453: Automatic "Re:" prefixes in forum replies now don't get chained in languages where the "re:" string has length != 3. --- mod/forum/post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index c7dbe24046..3cb52a5ece 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -206,9 +206,9 @@ $post->message = ""; $post->format = $defaultformat; - $strre = get_string("re", "forum"); - if (!(substr($post->subject, 0, 3) == $strre)) { - $post->subject = "$strre $post->subject"; + $strre = get_string('re', 'forum'); + if (!(substr($post->subject, 0, strlen($strre)) == $strre)) { + $post->subject = $strre.' '.$post->subject; } unset($SESSION->fromdiscussion); -- 2.39.5