From 73c763b75d3b48c5a445716e2d811e9da26669a7 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 12 Dec 2008 05:53:48 +0000 Subject: [PATCH] "MDL-14129, update forum module language file" --- lang/en_utf8/forum.php | 1 + mod/forum/post.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/forum.php b/lang/en_utf8/forum.php index a264e9b933..b324a0f364 100644 --- a/lang/en_utf8/forum.php +++ b/lang/en_utf8/forum.php @@ -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!'; diff --git a/mod/forum/post.php b/mod/forum/post.php index b6249bfe9e..28ef64cbc9 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -717,7 +717,7 @@ 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") : -- 2.39.5