Skip to content

Commit

Permalink
Slight change to "show parent" link (backto how it was)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 17, 2007
1 parent 87a462e commit 2db01be
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2db01be

Please sign in to comment.