mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-24501 Use standard renderer for rendering user images on tags pages
This commit is contained in:
parent
b6d8012ed7
commit
8d6385d355
@ -335,13 +335,7 @@ function tag_print_user_box($user, $return=false) {
|
||||
$alt = $fullname;
|
||||
}
|
||||
|
||||
//print user image - if image is only content of link it needs ALT text!
|
||||
if ($user->picture) {
|
||||
$output .= '<img alt="'. $alt .'" class="user-image" src="'. $CFG->wwwroot .'/user/pix.php/'. $user->id .'/f1.jpg" />';
|
||||
} else {
|
||||
$output .= '<img alt="'. $alt .'" class="user-image" src="'. $CFG->wwwroot .'/pix/u/f1.png" />';
|
||||
}
|
||||
|
||||
$output .= $OUTPUT->user_picture($user, array('size'=>100));
|
||||
$output .= '<br />';
|
||||
|
||||
if (!empty($profilelink)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user