message MDLSITE-1039 made clicking on a contacts name work on the message search page

This commit is contained in:
Andrew Davis
2010-10-06 07:41:23 +00:00
parent cf45586528
commit 577bd04bac
+7
View File
@@ -44,6 +44,13 @@ $unblockcontact = optional_param('unblockcontact', 0, PARAM_INT); // unblocking
$advancedsearch = optional_param('advanced', 0, PARAM_INT);
$usergroup = optional_param('usergroup', VIEW_UNREAD_MESSAGES, PARAM_ALPHANUMEXT);
//id will be supplied if they've clicked on someone in their contact list
//if they have redirect to recent messages exchanged with that user
$user2 = optional_param('id', 0, PARAM_INT);
if (!empty($user2)) {
redirect('index.php?id='.$user2);
}
$url = new moodle_url('/message/contacts.php');
/*if ($addcontact !== 0) {
$url->param('addcontact', $addcontact);