mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merged user tab visibility from stable
This commit is contained in:
parent
c1edf72575
commit
adc7b679aa
@ -34,8 +34,12 @@
|
||||
print_heading($site->fullname);
|
||||
|
||||
if ($CFG->bloglevel >= 4) {
|
||||
$toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID,
|
||||
get_string('participants'));
|
||||
if (isteacher(SITEID) ||
|
||||
($CFG->showsiteparticipants == 1 && isteacherinanycourse()) ||
|
||||
($CFG->showsiteparticipantslist == 2)) {
|
||||
$toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID,
|
||||
get_string('participants'));
|
||||
}
|
||||
|
||||
$toprow[] = new tabobject('blogs', $CFG->wwwroot.'/blog/index.php?filtertype=site&',
|
||||
get_string('blogs','blog'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user