MDL-11379 and MDL-11380 fixed

This commit is contained in:
nicolasconnault 2007-09-21 07:52:52 +00:00
parent 6421ee7191
commit 2f6c662f41
4 changed files with 32 additions and 30 deletions

View file

@ -129,7 +129,6 @@
/// course header /// course header
$navlinks = array(); $navlinks = array();
if ($courseid != SITEID) { if ($courseid != SITEID) {
$navlinks[] = array('name' => $course->shortname, 'link' => "$CFG->wwwroot/course/view.php?id=$course->id", 'type' => 'course');
$navlinks[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc'); $navlinks[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc');
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&course=$courseid", 'type' => 'misc'); $navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&course=$courseid", 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc'); $navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');

View file

@ -43,6 +43,8 @@
$fullname = fullname($user, true); $fullname = fullname($user, true);
$navlinks = array(); $navlinks = array();
$navlinks[] = array('name' => $course->shortname, 'link' => "course/view.php?id=$course->id", 'type' => 'misc');
if ($course->id != SITEID) { if ($course->id != SITEID) {
$navlinks[] = array('name' => $strparticipants, 'link' => "../user/index.php?id=$course->id", 'type' => 'misc'); $navlinks[] = array('name' => $strparticipants, 'link' => "../user/index.php?id=$course->id", 'type' => 'misc');
} }

View file

@ -59,6 +59,7 @@
print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($nav)); print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($nav));
$showroles = 1;
$currenttab = 'notes'; $currenttab = 'notes';
require_once($CFG->dirroot .'/user/tabs.php'); require_once($CFG->dirroot .'/user/tabs.php');