diff --git a/message/lib.php b/message/lib.php
index 1ace85cf68d..6196bb937c3 100644
--- a/message/lib.php
+++ b/message/lib.php
@@ -58,7 +58,8 @@ function message_print_contacts() {
$fullnamelink = ''.$fullnamelink.' ('.$unread.')';
}
/// link to remove from contact list
- $strcontact .= message_contact_link($contact->id, 'remove', true);
+ $strcontact = message_contact_link($contact->id, 'remove', true);
+ $strhistory = message_contact_link($contact->id, 'history', true);
echo '
| ';
print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow');
@@ -68,7 +69,7 @@ function message_print_contacts() {
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo ' | ';
- echo ''.$strcontact.' | ';
+ echo ''.$strcontact.' '.$strhistory.' | ';
echo '
';
}
}
@@ -94,6 +95,7 @@ function message_print_contacts() {
}
/// link to remove from contact list
$strcontact = message_contact_link($contact->id, 'remove', true);
+ $strhistory = message_contact_link($contact->id, 'history', true);
echo '| ';
print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow');
@@ -103,7 +105,7 @@ function message_print_contacts() {
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo ' | ';
- echo ''.$strcontact.' | ';
+ echo ''.$strcontact.' '.$strhistory.' | ';
echo '
';
}
}
@@ -153,6 +155,7 @@ function message_print_contacts() {
$strcontact = message_contact_link($messageuser->useridfrom, 'add', true);
$strblock = message_contact_link($messageuser->useridfrom, 'block', true);
+ $strhistory = message_contact_link($messageuser->useridfrom, 'history', true);
echo '| ';
print_user_picture($messageuser->useridfrom, SITEID, $messageuser->picture, 20, false, true, 'userwindow');
@@ -162,7 +165,7 @@ function message_print_contacts() {
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo ' | ';
- echo ''.$strcontact.' '.$strblock.' | ';
+ echo ' '.$strcontact.' '.$strblock.' '.$strhistory.' | ';
echo '
';
}
}
@@ -526,9 +529,13 @@ function message_contact_link($userid, $linktype='add', $return=false) {
$str->unblockcontact = get_string('unblockcontact', 'message');
$str->removecontact = get_string('removecontact', 'message');
$str->addcontact = get_string('addcontact', 'message');
+ $str->messagehistory = get_string('messagehistory', 'message');
}
switch ($linktype) {
+ case 'history':
+ $output = '
';
+ break;
case 'block':
$output = ''.
diff --git a/message/search.html b/message/search.html
index 404f6c7944b..85c5edf5d7f 100644
--- a/message/search.html
+++ b/message/search.html
@@ -2,7 +2,7 @@
-