message MDL-25240 switched personal messages from FORMAT_PLAIN to FORMAT_MOODLE
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 9 Dec 2010 06:39:53 +0000 (06:39 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 9 Dec 2010 06:39:53 +0000 (06:39 +0000)
message/index.php

index 1b55b62..7addba5 100644 (file)
@@ -156,7 +156,7 @@ if ($currentuser && !empty($user2) && has_capability('moodle/site:sendmessage',
                 print_error('invalidsesskey');
             }
 
-            $messageid = message_post_message($user1, $user2, $data->message, FORMAT_PLAIN, 'direct');
+            $messageid = message_post_message($user1, $user2, $data->message, FORMAT_MOODLE, 'direct');
             if (!empty($messageid)) {
                 redirect($CFG->wwwroot . '/message/index.php?usergroup='.$usergroup.'&id='.$user2->id);
             }