Slight change to "show parent" link (backto how it was)
This commit is contained in:
+3
-8
@@ -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.'&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.'&parent='.$post->parent.'">'.$strparent.'</a>';
|
||||
}
|
||||
|
||||
$forumtype = get_field('forum', 'type', 'id', $post->forum);
|
||||
|
||||
Reference in New Issue
Block a user