mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Fixed messaging links in blocks
This commit is contained in:
parent
3d89b0e02c
commit
dd189d93ab
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class block_messages extends block_base {
|
|||
}
|
||||
$timeago = format_time(time() - $user->lastaccess);
|
||||
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$this->instance->pageid.'" title="'.$timeago.'">'.fullname($user).'</a>';
|
||||
$this->content->text .= ' <a target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/user.php?id='.$user->id.'" onclick="return openpopup(\'/message/user.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img height="11" width="11" src="'.$CFG->pixpath.'/t/message.gif" alt="" /> '.$user->count.'</a>';
|
||||
$this->content->text .= ' <a target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img height="11" width="11" src="'.$CFG->pixpath.'/t/message.gif" alt="" /> '.$user->count.'</a>';
|
||||
$this->content->text .= '</div>';
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue