]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14129, update forum module language file"
authordongsheng <dongsheng>
Fri, 12 Dec 2008 05:53:48 +0000 (05:53 +0000)
committerdongsheng <dongsheng>
Fri, 12 Dec 2008 05:53:48 +0000 (05:53 +0000)
lang/en_utf8/forum.php
mod/forum/post.php

index a264e9b933e13b26df78caa73e9606cabe98da27..b324a0f364462c038670b0ec9e664be8c84aab41 100644 (file)
@@ -54,6 +54,7 @@ $string['cannotreply'] = 'You cannot reply to this post';
 $string['cannotfindorcreateforum'] = 'Could not find or create a main news forum for the site';
 $string['cannotfindfirstpost'] = 'Could not find the first post in this forum';
 $string['cannotfinddisscussion'] = 'Could not find the discussion in this forum';
+$string['cannotfindparentpost'] = 'Could not find top parent of post $a';
 $string['cannottrack'] = 'Could not stop tracking that forum';
 $string['cannotmovefromsingleforum'] = 'Cannot move discussion from a simple single discussion forum';
 $string['cannotmovetonotexist'] = 'You can\'t move to that forum - it doesn\'t exist!';
index b6249bfe9e02c9311317812e38391b7e697b72e8..28ef64cbc9dcab6c0c3ff4b86a51f18edf32af1a 100644 (file)
 
     if ($post->discussion) {
         if (! $toppost = $DB->get_record("forum_posts", array("discussion" => $post->discussion, "parent" => 0))) {
-            print_error("Could not find top parent of post $post->id");
+            print_error('cannotfindparentpost', 'forum', '', $post->id);
         }
     } else {
         $toppost->subject = ($forum->type == "news") ? get_string("addanewtopic", "forum") :