diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index f5d30d57a30..decdb0ede04 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -153,11 +153,8 @@ class block_online_users extends block_base { $this->content->text .= ''.$user->fullname.''; } 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 = ''. 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 = ''.$anchortagcontents .''; $this->content->text .= '
'.$anchortag.'
'; }