Slight change to "show parent" link (backto how it was)

This commit is contained in:
moodler 2007-08-17 03:42:07 +00:00
parent 87a462eadb
commit 2db01bec9e

View 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);