]> git.mjollnir.org Git - moodle.git/commitdiff
This has been annoying me for ages, and the fix is so simple.
authormoodler <moodler>
Fri, 12 Dec 2003 08:20:45 +0000 (08:20 +0000)
committermoodler <moodler>
Fri, 12 Dec 2003 08:20:45 +0000 (08:20 +0000)
When replying to a post that already has replies - the replies
are listed in threaded form.

mod/forum/post.php

index 62ce936954c096042a6741ec62748aeb6752b578..95581bc1266060bfed3e7a23edb7f5dd2a5dd75d 100644 (file)
 
     }
 
-    echo "<center>";
     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);
+        echo "<center>";
         echo "<H2>".get_string("yourreply", "forum").":</H2>";
     } else {
+        echo "<center>";
         echo "<H2>".get_string("yournewtopic", "forum")."</H2>";
     }
     if (!empty($post->error)) {