mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Slight change to "show parent" link (backto how it was)
This commit is contained in:
parent
87a462eadb
commit
2db01bec9e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user