mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-16473 Merged style fix for user pics from 1.9
This commit is contained in:
parent
61d04bcc46
commit
56dae0a227
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user