mod-forum MDL-25386 Fixed up the navigation for the forum.
authorSam Hemelryk <sam@moodle.com>
Mon, 29 Nov 2010 06:27:22 +0000 (06:27 +0000)
committerSam Hemelryk <sam@moodle.com>
Mon, 29 Nov 2010 06:27:22 +0000 (06:27 +0000)
mod/forum/discuss.php

index b49adca..e33866d 100644 (file)
     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);
     }