MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars
This commit is contained in:
+1
-4
@@ -90,10 +90,7 @@ $PAGE->set_pagelayout('popup');
|
||||
echo $OUTPUT->header();
|
||||
echo '<table width="100%" cellpadding="0" cellspacing="0"><tr>';
|
||||
echo '<td width="100">';
|
||||
$userpic = moodle_user_picture::make($user, SITEID);
|
||||
$userpic->size = 48;
|
||||
$userpic->link = true;
|
||||
echo $OUTPUT->user_picture($userpic) .'</td>';
|
||||
echo $OUTPUT->user_picture($user, array('size'=>48, 'courseid'=>SITEID)) .'</td>';
|
||||
echo '<td valign="middle" align="center">';
|
||||
|
||||
echo '<div class="name">'.fullname($user).'</div>';
|
||||
|
||||
Reference in New Issue
Block a user