Skip to content

Commit aa5f7ac

Browse files
author
Mr Bot
committed
Automatic merge from release/4.4 -> release/4.4+1
2 parents 873fa84 + 09731bc commit aa5f7ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4252,6 +4252,7 @@ function hsuforum_add_new_post($post, $mform, $unused=null, \mod_hsuforum\upload
42524252
$post->mailed = HSUFORUM_MAILED_PENDING;
42534253
$post->userid = $USER->id;
42544254
$post->attachment = 0;
4255+
$post->privatereplyto = 0;
42554256
if (!isset($post->totalscore)) {
42564257
$post->totalscore = 0;
42574258
}
@@ -4267,6 +4268,8 @@ function hsuforum_add_new_post($post, $mform, $unused=null, \mod_hsuforum\upload
42674268
$post->id = $DB->insert_record("hsuforum_posts", $post);
42684269
$post->message = file_save_draft_area_files($draftid, $context->id, 'mod_hsuforum', 'post', $post->id,
42694270
mod_hsuforum_post_form::editor_options($context, $post->id), $post->message);
4271+
$post->wordcount = count_words($post->message, $post->messageformat);
4272+
$post->charcount = count_letters($post->message, $post->messageformat);
42704273
$DB->update_record('hsuforum_posts', $post);
42714274
hsuforum_add_attachment($post, $forum, $cm, $mform, null, $uploader);
42724275

@@ -4436,6 +4439,7 @@ function hsuforum_add_discussion($discussion, $mform=null, $unused=null, $userid
44364439
$discussion->usermodified = $post->userid;
44374440
$discussion->userid = $userid;
44384441
$discussion->assessed = 0;
4442+
$discussion->timelocked = 0;
44394443

44404444
$post->discussion = $DB->insert_record("hsuforum_discussions", $discussion);
44414445

0 commit comments

Comments
 (0)