MDL-22320 Fixed links to messaging (no longer to popup)

This commit is contained in:
Martin Dougiamas
2010-07-12 13:13:09 +00:00
parent b437f681f9
commit 0f47bf5809
+1 -4
View File
@@ -153,11 +153,8 @@ class block_online_users extends block_base {
$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>';
}