MDL-16473 Merged style fix for user pics from 1.9

This commit is contained in:
moodler 2008-09-12 06:56:11 +00:00
parent 61d04bcc46
commit 56dae0a227

View File

@ -4581,16 +4581,14 @@ function print_group_picture($group, $courseid, $large=false, $return=false, $li
}
if ($large) {
$file = 'f1';
$size = 100;
} else {
$file = 'f2';
$size = 35;
}
if ($group->picture) { // Print custom group picture
require_once($CFG->libdir.'/filelib.php');
$grouppictureurl = get_file_url($group->id.'/'.$file.'.jpg', null, 'usergroup');
$output .= '<img class="grouppicture" src="'.$grouppictureurl.'"'.
' style="width:'.$size.'px;height:'.$size.'px;" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
' alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
}
if ($link or has_capability('moodle/site:accessallgroups', $context)) {
$output .= '</a>';