diff --git a/lib/weblib.php b/lib/weblib.php
index 9a0dde057bc..77cd020183a 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -3384,10 +3384,10 @@ function print_group_picture($group, $courseid, $large=false, $return=false, $li
}
if ($group->picture) { // Print custom group picture
if ($CFG->slasharguments) { // Use this method if possible for better caching
- $output .= '
wwwroot.'/user/pixgroup.php/'.$group->id.'/'.$file.'.jpg"'.
' style="width:'.$size.'px;height:'.$size.'px;" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
} else {
- $output .= '
wwwroot.'/user/pixgroup.php?file=/'.$group->id.'/'.$file.'.jpg"'.
' style="width:'.$size.'px;height:'.$size.'px;" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
}
}