Automatic "Re:" prefixes in forum replies now don't get chained in languages
where the "re:" string has length != 3.
$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);