]> git.mjollnir.org Git - moodle.git/commitdiff
Slight change to "show parent" link (backto how it was)
authormoodler <moodler>
Fri, 17 Aug 2007 03:42:07 +0000 (03:42 +0000)
committermoodler <moodler>
Fri, 17 Aug 2007 03:42:07 +0000 (03:42 +0000)
mod/forum/lib.php

index e1aa7cec89dd126d183e343e6ba18073f37a5f4b..035bfb6dfa2380631f53e8a5864b0786987b21db 100644 (file)
@@ -2278,14 +2278,9 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
         }
     }
 
-    if ($post->parent) {
-        if ($threadedmode) {
-            $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                          $post->discussion.'&amp;parent='.$post->parent.'">'.$strparent.'</a>';
-        } else {
-            $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                          $post->discussion.'#p'.$post->parent.'">'.$strparent.'</a>';
-        }
+    if ($post->parent) {  // Zoom in to the parent specifically
+        $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
+                      $post->discussion.'&amp;parent='.$post->parent.'">'.$strparent.'</a>';
     }
 
     $forumtype = get_field('forum', 'type', 'id', $post->forum);