if ($USER->groupediting) { // Make an editing form for group information
print_heading($group->name);
echo '<div align="center">';
- print_group_picture($group->id, $course->id, $group->picture, true, false, false);
+ print_group_picture($group, $course->id, true, false, false);
echo '</div>';
print_simple_box($group->description, 'center', '50%');
} else { // Just display the information
print_heading($group->name);
echo '<div align="center">';
- print_group_picture($group->id, $course->id, $group->picture, true, false, false);
+ print_group_picture($group, $course->id, true, false, false);
echo '</div>';
print_simple_box($group->description, 'center', '50%');
}
<table align="center" class="generalbox">
<tr>
- <td valign="top"><?php echo $t->picture ?></td>
+ <td valign="top" width="100"><?php echo $t->picture ?></td>
<td><p style="font-size: larger"><?php echo $t->name ?></p>
<p><?php echo $t->description ?></p>
<p><ul><?php
$isteacher = isteacher($course->id);
foreach ($groups as $group) {
$t = $group;
- $t->picture = print_group_picture($group->id, $course->id, $group->picture, true, true, true);
+ $t->picture = print_group_picture($group, $course->id, true, true, true);
if ($t->users = get_users_in_group($group->id)) {
foreach ($t->users as $key => $user) {
$t->users[$key]->fullname = fullname($user, $isteacher);