Permalink
Browse files

NOMDL Fixed profile pictures size in the list of participants

Because the 'size' option was not specified, the renderer used the
default size 35 for both modes. Therefore, the f2.png profile picture
was used even though the detailed expects 100x100 pictures. With this
patch, both sizes are specified explicitly and do not rely on the
default value.
  • Loading branch information...
1 parent ed24411 commit 9c5cafd6d79521e99af3dc02ed3d9ff15074f4d8 @mudrd8mz mudrd8mz committed Dec 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 user/index.php
View
@@ -594,7 +594,7 @@
$row->cells[0] = new html_table_cell();
$row->cells[0]->attributes['class'] = 'left side';
- $row->cells[0]->text = $OUTPUT->user_picture($user, array('courseid'=>$course->id));
+ $row->cells[0]->text = $OUTPUT->user_picture($user, array('size' => 100, 'courseid'=>$course->id));
$row->cells[1] = new html_table_cell();
$row->cells[1]->attributes['class'] = 'content';
@@ -713,7 +713,7 @@
$profilelink = '<strong>'.fullname($user).'</strong>';
}
- $data = array ($OUTPUT->user_picture($user, array('courseid'=>$course->id)), $profilelink);
+ $data = array ($OUTPUT->user_picture($user, array('size' => 35, 'courseid'=>$course->id)), $profilelink);
if ($mode === MODE_BRIEF && !isset($hiddenfields['city'])) {
$data[] = $user->city;

0 comments on commit 9c5cafd

Please sign in to comment.