mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-31835_recent_conversations' of git://github.com/andyjdavis/moodle
This commit is contained in:
commit
223d02a468
@ -128,6 +128,7 @@ $string['settings'] = 'Settings';
|
||||
$string['settingssaved'] = 'Your settings have been saved';
|
||||
$string['showmessagewindow'] = 'Popup window on new message';
|
||||
$string['strftimedaydatetime'] = '%A, %d %B %Y, %I:%M %p';
|
||||
$string['thisconversation'] = 'this conversation';
|
||||
$string['timenosee'] = 'Minutes since I was last seen online';
|
||||
$string['timesent'] = 'Time sent';
|
||||
$string['touserdoesntexist'] = 'You can not send a message to a user id ({$a}) that doesn\'t exist';
|
||||
|
@ -813,6 +813,12 @@ function message_print_recent_conversations($user=null, $showicontext=false) {
|
||||
|
||||
$conversations = message_get_recent_conversations($user);
|
||||
|
||||
// Attach context url information to create the "View this conversation" type links
|
||||
foreach($conversations as $conversation) {
|
||||
$conversation->contexturl = new moodle_url("/message/index.php?user2={$conversation->id}");
|
||||
$conversation->contexturlname = get_string('thisconversation', 'message');
|
||||
}
|
||||
|
||||
$showotheruser = true;
|
||||
message_print_recent_messages_table($conversations, $user, $showotheruser, $showicontext);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user