# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/admin/user/user_bulk_message.php
--- moodle/admin/user/user_bulk_message.php Base (1.22)
+++ moodle/admin/user/user_bulk_message.php Locally Modified (Based On 1.22)
@@ -27,7 +27,10 @@
     list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users);
     if ($rs = $DB->get_recordset_select('user', "id $in", $params)) {
         foreach ($rs as $user) {
-            message_post_message($USER, $user, $msg, FORMAT_HTML, 'direct'); // TODO: this is weird, we should support all text formats here
+            //TODO we should probably support all text formats here or only FORMAT_MOODLE
+            //For now bulk messaging is still using the html editor so its supplying html
+            //so we have to use html format for it to be displayed correctly
+            message_post_message($USER, $user, $msg, FORMAT_HTML, 'direct');
         }
         $rs->close();
     }
Index: moodle/message/index.php
--- moodle/message/index.php Base (1.45)
+++ moodle/message/index.php Locally Modified (Based On 1.45)
@@ -156,7 +156,7 @@
                 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);
             }
