Skip to content

Commit

Permalink
MDL-22320 Fixed broken message links in message block
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 3, 2010
1 parent 4613c1e commit 088d940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/messages/block_messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).'</a></div>';

$link = '/message/discussion.php?id='.$user->id;
$link = '/message/index.php?usergroup=unread&id='.$user->id;
$anchortagcontents = '<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="" />&nbsp;'.$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 .= '<div class="message">'.$anchortag.'</div></li>';
Expand Down

0 comments on commit 088d940

Please sign in to comment.