From f8029045de9b3489da37cb620c2eba17f66188c8 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 12 Dec 2003 08:46:24 +0000 Subject: [PATCH] Don't show replies when re-editing a post. --- mod/forum/post.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index 95581bc126..54cae5361d 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -341,7 +341,9 @@ if (!empty($parent)) { forum_print_post($parent, $course->id, $ownpost=false, $reply=false, $link=false); - forum_print_posts_threaded($parent->id, $course, 0, false, false); + if (empty($post->edit)) { + forum_print_posts_threaded($parent->id, $course, 0, false, false); + } echo "
"; echo "

".get_string("yourreply", "forum").":

"; } else { -- 2.39.5