mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
Chat room text is now filtered
This commit is contained in:
parent
302130de75
commit
62a575d157
@ -47,7 +47,7 @@ header("Refresh: $CFG->chat_refresh_room; URL=jsupdate.php?chat_sid=".$chat_sid.
|
||||
"chatid = '$chatuser->chatid' AND timestamp > '$chat_lasttime'",
|
||||
"timestamp ASC")) {
|
||||
foreach ($messages as $message) {
|
||||
$formatmessage = chat_format_message($message);
|
||||
$formatmessage = chat_format_message($message, $chat->course);
|
||||
if ($formatmessage->beep) {
|
||||
$beep = $formatmessage->beep;
|
||||
}
|
||||
|
@ -508,6 +508,7 @@ function chat_format_message($message, $courseid=0) {
|
||||
|
||||
convert_urls_into_links($text);
|
||||
replace_smilies($text);
|
||||
$text = filter_text($text, $courseid);
|
||||
|
||||
if (substr($text, 0, 5) == "beep ") { /// It's a beep!
|
||||
$beepwho = trim(substr($text, 5));
|
||||
|
@ -108,7 +108,7 @@
|
||||
}
|
||||
|
||||
if ($chat->intro) {
|
||||
print_simple_box( text_to_html($chat->intro) , "center");
|
||||
print_simple_box( format_text($chat->intro) , "center");
|
||||
echo "<br />";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user