mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 06:05:31 +02:00
Minor coding clean-ups.
This commit is contained in:
parent
9978c779a5
commit
ad6324b338
@ -233,21 +233,21 @@
|
||||
/// course header
|
||||
$navlinks = array();
|
||||
if ($courseid != SITEID) {
|
||||
if (has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_COURSE, $course->id))) {
|
||||
$navlinks[] = array('name' => get_string('participants'), 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc');
|
||||
if (has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_COURSE, $courseid))) {
|
||||
$navlinks[] = array('name' => get_string('participants'), 'link' => "$CFG->wwwroot/user/index.php?id=$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');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($title, "$fullname", $navigation, "", "", true, " ", navmenu($course));
|
||||
print_header($title, $fullname, $navigation, '', '', true, ' ', navmenu($course));
|
||||
|
||||
/// site header
|
||||
} else {
|
||||
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&course=$courseid", 'type' => 'misc');
|
||||
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
print_header($title, $course->fullname, $navigation, "", "", true, " ", navmenu($course));
|
||||
print_header($title, $course->fullname, $navigation, '', '', true, ' ', navmenu($course));
|
||||
}
|
||||
|
||||
$showroles = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user