Revert "message MDL-26119 now logs when a user sends a message" because the log URL generated is incorrect

This reverts commit 88c9987e89.
This commit is contained in:
Sam Hemelryk
2011-02-09 16:25:39 +08:00
parent cd03ecce8e
commit ada93b58fb
+1 -7
View File
@@ -158,13 +158,7 @@ if ($currentuser && !empty($user2) && has_capability('moodle/site:sendmessage',
$messageid = message_post_message($user1, $user2, $data->message, FORMAT_MOODLE, 'direct');
if (!empty($messageid)) {
//Not including message ID as the ID may change when its moved to message_read
//.'#m'.$messageid;
$returnurl = '/message/index.php?usergroup='.$usergroup.'&id='.$user2->id;
//including the id of the user sending the message in the logged URL
add_to_log(SITEID, 'message', 'write', $returnurl.'&user='.$user1->id, $user1->id);
redirect($CFG->wwwroot.$returnurl);
redirect($CFG->wwwroot . '/message/index.php?usergroup='.$usergroup.'&id='.$user2->id);
}
}
}