mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-11379 and MDL-11380 fixed
This commit is contained in:
parent
6421ee7191
commit
2f6c662f41
4 changed files with 32 additions and 30 deletions
|
@ -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');
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue