]> git.mjollnir.org Git - moodle.git/commitdiff
Anchors on threaded posts too
authormoodler <moodler>
Fri, 20 Jun 2003 06:50:14 +0000 (06:50 +0000)
committermoodler <moodler>
Fri, 20 Jun 2003 06:50:14 +0000 (06:50 +0000)
mod/forum/lib.php

index fd5a377ea8906f20d36cc2f3156620ee726a6c60..acea8ece641813bc72c5f449ec0001997af52c77 100644 (file)
@@ -1728,21 +1728,21 @@ function forum_print_posts_threaded($parent, $course, $depth, $assessed, $reply)
     if ($posts = forum_get_child_posts($parent)) {
         foreach ($posts as $post) {
 
-            echo "<UL>";
+            echo "<ul>";
             if ($depth > 0) {
                 $ownpost = ($USER->id == $post->userid);
                 forum_print_post($post, $course, $ownpost, $reply, $link, $assessed);  // link=true?
-                echo "<BR>";
+                echo "<br />";
             } else {
                 $by->name = "$post->firstname $post->lastname";
                 $by->date = userdate($post->modified);
-                echo "<LI><P><FONT SIZE=-1><B><A HREF=\"discuss.php?d=$post->discussion&parent=$post->id\">$post->subject</A></B> ";
+                echo "<li><p><a name=\"$post->id\"></a><font size=-1><b><a href=\"discuss.php?d=$post->discussion&parent=$post->id\">$post->subject</a></b> ";
                 print_string("bynameondate", "forum", $by);
-                echo "</FONT></P></LI>";
+                echo "</font></p></li>";
             }
 
             forum_print_posts_threaded($post->id, $course, $depth-1, $assessed, $reply);
-            echo "</UL>\n";
+            echo "</ul>\n";
         }
     } else {
         return;