Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…odle into MOODLE_24_STABLE
  • Loading branch information...
commit 865485fc54f44815ec62e8e91c2dea50481c2e7b 2 parents 7c431a3 + a595b4d
@danpoltawski danpoltawski authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 blocks/online_users/block_online_users.php
View
7 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') .'" />';
Please sign in to comment.
Something went wrong with that request. Please try again.