Revert "message MDL-26119 now logs when a user sends a message" because the log URL...
authorSam Hemelryk <sam@moodle.com>
Wed, 9 Feb 2011 08:25:39 +0000 (16:25 +0800)
committerSam Hemelryk <sam@moodle.com>
Wed, 9 Feb 2011 08:25:39 +0000 (16:25 +0800)
message/index.php

index de25989..7addba5 100644 (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);
             }
         }
     }