MDL-57639 mod_forum: Update to use correct variable name

This addresses a regression where unnecessary attributes were removed
from the old variable. This one was missed.
This commit is contained in:
Andrew Nicols
2017-01-19 13:47:40 +08:00
parent 5e1014a76e
commit c8dddb5ccb
+1 -1
View File
@@ -4458,7 +4458,7 @@ function forum_update_post($newpost, $mform, $unused = null) {
forum_add_attachment($post, $forum, $cm, $mform);
if (forum_tp_can_track_forums($forum) && forum_tp_is_tracked($forum)) {
forum_tp_mark_post_read($USER->id, $post, $post->forum);
forum_tp_mark_post_read($USER->id, $post, $forum->id);
}
// Let Moodle know that assessable content is uploaded (eg for plagiarism detection)