Permalink
Browse files

Merge branch 'wip-MDL-36108-stable23' of git://github.com/phalacee/mo…

…odle into MOODLE_23_STABLE
  • Loading branch information...
2 parents f2190ba + a5dbb60 commit eba170d8fccef19f9cebd5b934574b20918ff8de @danpoltawski danpoltawski committed Dec 11, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 blocks/online_users/block_online_users.php
@@ -151,12 +151,13 @@ function get_content() {
$timeago = format_time($now - $user->lastaccess); //bruno to calculate correctly on frontpage
if (isguestuser($user)) {
- $this->content->text .= '<div class="user">'.$OUTPUT->user_picture($user, array('size'=>16));
+ $this->content->text .= '<div class="user">'.$OUTPUT->user_picture($user, array('size'=>16, 'alttext'=>false));
$this->content->text .= get_string('guestuser').'</div>';
} else {
- $this->content->text .= '<div class="user">'.$OUTPUT->user_picture($user, array('size'=>16));
- $this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->page->course->id.'" title="'.$timeago.'">'.$user->fullname.'</a></div>';
+ $this->content->text .= '<div class="user">';
+ $this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->page->course->id.'" title="'.$timeago.'">';
+ $this->content->text .= $OUTPUT->user_picture($user, array('size'=>16, 'alttext'=>false, 'link'=>false)) .$user->fullname.'</a></div>';
}
if ($canshowicon and ($USER->id != $user->id) and !isguestuser($user)) { // Only when logged in and messaging active etc
$anchortagcontents = '<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="'. get_string('messageselectadd') .'" />';

0 comments on commit eba170d

Please sign in to comment.