mod-forum MDL-25386 Fixed up the navigation for the forum.
This commit is contained in:
@@ -158,9 +158,10 @@
|
||||
if (empty($forumnode)) {
|
||||
$forumnode = $PAGE->navbar;
|
||||
} else {
|
||||
$forumnode->display = false;
|
||||
$forumnode->make_active();
|
||||
}
|
||||
$node = $forumnode->add(format_string($discussion->name), new moodle_url('/mod/forum/discuss.php', array('d'=>$discussion->id)));
|
||||
$node->display = false;
|
||||
if ($node && $post->id != $discussion->firstpost) {
|
||||
$node->add(format_string($post->subject), $PAGE->url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user