Skip to content

Commit

Permalink
Merge branch 'MDL-67336-master' of https://github.com/roland04/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jan 6, 2020
2 parents c554024 + e9049ac commit d3383e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/externallib.php
Expand Up @@ -1319,7 +1319,7 @@ public static function add_discussion_post($postid, $subject, $message, $options
$preferredformat = editors_get_preferred_format();
// If the post is not HTML and the preferred format is HTML, convert to it.
if ($params['messageformat'] != FORMAT_HTML and $preferredformat == FORMAT_HTML) {
$params['message'] = format_text($params['message'], $params['messageformat'], ['context' => $context]);
$params['message'] = format_text($params['message'], $params['messageformat'], ['filter' => false]);
}
$params['messageformat'] = $preferredformat;
}
Expand Down

0 comments on commit d3383e6

Please sign in to comment.