mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
Merge branch 'MDL-67959-master-2' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
6d0b97a176
@ -165,13 +165,11 @@ class author extends exporter {
|
||||
$groups = array_map(function($group) use ($urlfactory, $context, $output) {
|
||||
$imageurl = null;
|
||||
$groupurl = null;
|
||||
|
||||
if (!$group->hidepicture) {
|
||||
$imageurl = get_group_picture_url($group, $group->courseid, true);
|
||||
if (empty($imageurl)) {
|
||||
// Get a generic group image URL.
|
||||
$imageurl = $output->image_url('g/g1');
|
||||
}
|
||||
}
|
||||
|
||||
if (course_can_view_participants($context)) {
|
||||
$groupurl = $urlfactory->get_author_group_url($group);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user