Skip to content

Commit

Permalink
MDL-22320 Fixed links to messaging (no longer to popup)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 12, 2010
1 parent b437f68 commit 0f47bf5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blocks/online_users/block_online_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,8 @@ function get_content() {
$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>';
}
if ($canshowicon and ($USER->id != $user->id) and $user->username != 'guest') { // Only when logged in and messaging active etc
$link = '/message/discussion.php?id='.$user->id;
$anchortagcontents = '<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="'. get_string('messageselectadd') .'" />';

$action = new popup_action('click', $link, 'message_'.$user->id, array('width'=>400,'height'=>500));
$anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>get_string('messageselectadd')));
$anchortag = '<a href="'.$CFG->wwwroot.'/message/index.php?id='.$user->id.'" title="'.get_string('messageselectadd').'">'.$anchortagcontents .'</a>';

$this->content->text .= '<div class="message">'.$anchortag.'</div>';
}
Expand Down

0 comments on commit 0f47bf5

Please sign in to comment.