Fix for bug 1453:

Automatic "Re:" prefixes in forum replies now don't get chained in languages
where the "re:" string has length != 3.
This commit is contained in:
defacer
2004-05-24 10:04:59 +00:00
parent cf800c27a1
commit e9584ca3e2
+3 -3
View File
@@ -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);