Skip to content
Browse files

Revert "message MDL-26119 now logs when a user sends a message" becau…

…se the log URL generated is incorrect

This reverts commit 88c9987.
  • Loading branch information...
1 parent cd03ecc commit ada93b58fbcb2a4d830e0dfd147db6873b6330c1 Sam Hemelryk committed Feb 9, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 message/index.php
View
8 message/index.php
@@ -158,13 +158,7 @@
$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);
}
}
}

0 comments on commit ada93b5

Please sign in to comment.
Something went wrong with that request. Please try again.