Skip to content

Commit

Permalink
MBS-8303: Fix wrong usage of format_text
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Oct 20, 2023
1 parent 780ef53 commit 9b4b6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/external/get_kanban_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public static function get_discussion_update(int $cmid, int $boardid, int $cardi

$formatter = new updateformatter();
foreach ($discussions as $discussion) {
$discussion->content = format_text($discussion->content, true, ['escape' => false]);
$discussion->content = format_text($discussion->content, FORMAT_HTML);
$discussion->candelete = $discussion->userid == $USER->id || has_capability('mod/kanban:manageboard', $context);
$discussion->username = fullname(\core_user::get_user($discussion->userid));
$formatter->put('discussions', (array) $discussion);
Expand Down

0 comments on commit 9b4b6c9

Please sign in to comment.