diff --git a/blocks/messages/block_messages.php b/blocks/messages/block_messages.php index 4ed83c0d5ab56..20b5ee935d861 100644 --- a/blocks/messages/block_messages.php +++ b/blocks/messages/block_messages.php @@ -49,10 +49,10 @@ function get_content() { $this->content->text .= $OUTPUT->user_picture($user, array('courseid'=>SITEID)); //TODO: user might not have capability to view frontpage profile :-( $this->content->text .= fullname($user).''; - $link = '/message/discussion.php?id='.$user->id; + $link = '/message/index.php?usergroup=unread&id='.$user->id; $anchortagcontents = ' '.$user->count; - $action = new popup_action('click', $link, 'message_'.$user->id); + $action = null; // popup is gone now $anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action); $this->content->text .= '
';