From: defacer Date: Mon, 24 May 2004 10:04:59 +0000 (+0000) Subject: Fix for bug 1453: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e9584ca3e293fc1902eda9094da904ed9d7d726d;p=moodle.git Fix for bug 1453: Automatic "Re:" prefixes in forum replies now don't get chained in languages where the "re:" string has length != 3. --- 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);