]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1453:
authordefacer <defacer>
Mon, 24 May 2004 10:04:59 +0000 (10:04 +0000)
committerdefacer <defacer>
Mon, 24 May 2004 10:04:59 +0000 (10:04 +0000)
Automatic "Re:" prefixes in forum replies now don't get chained in languages
where the "re:" string has length != 3.

mod/forum/post.php

index c7dbe240468f94020faabf623830c14944fbab1c..3cb52a5ece1b8b479fcae4ca39b29e05a4d19daf 100644 (file)
         $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);