mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Merge branch 'MDL-64240-master' of git://github.com/mickhawkins/moodle
This commit is contained in:
commit
caa0383ae5
@ -3617,7 +3617,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
|
||||
$postcontent = highlight($highlight, $postcontent);
|
||||
}
|
||||
if (!empty($forum->displaywordcount)) {
|
||||
$postcontent .= html_writer::tag('div', get_string('numwords', 'moodle', count_words($post->message)),
|
||||
$postcontent .= html_writer::tag('div', get_string('numwords', 'moodle', count_words($postcontent)),
|
||||
array('class'=>'post-word-count'));
|
||||
}
|
||||
$postcontent .= html_writer::tag('div', $attachedimages, array('class'=>'attachedimages'));
|
||||
|
@ -696,6 +696,9 @@ if ($mformpost->is_cancelled()) {
|
||||
// WARNING: the $fromform->message array has been overwritten, do not use it anymore!
|
||||
$fromform->messagetrust = trusttext_trusted($modcontext);
|
||||
|
||||
// Clean message text.
|
||||
$fromform = trusttext_pre_edit($fromform, 'message', $modcontext);
|
||||
|
||||
if ($fromform->edit) { // Updating a post.
|
||||
unset($fromform->groupid);
|
||||
$fromform->id = $fromform->edit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user