Skip to content

Commit

Permalink
MDL-37138 chat: Use blanktarget option for chat text
Browse files Browse the repository at this point in the history
  • Loading branch information
cameorn1730 committed May 30, 2016
1 parent 64e8311 commit cd29373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/chat/lib.php
Expand Up @@ -749,6 +749,7 @@ function chat_format_message_manually($message, $courseid, $sender, $currentuser
// Parse the text to clean and filter it.
$options = new stdClass();
$options->para = false;
$options->blanktarget = true;
$text = format_text($text, FORMAT_MOODLE, $options, $courseid);

// And now check for special cases.
Expand Down Expand Up @@ -922,6 +923,7 @@ function chat_format_message_theme ($message, $chatuser, $currentuser, $grouping
// Parse the text to clean and filter it.
$options = new stdClass();
$options->para = false;
$options->blanktarget = true;
$text = format_text($text, FORMAT_MOODLE, $options, $courseid);

// And now check for special cases.
Expand Down

0 comments on commit cd29373

Please sign in to comment.