mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-37138 chat: Use blanktarget option for chat text
This commit is contained in:
parent
64e8311939
commit
cd29373c35
@ -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.
|
||||
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user