Merge branch 'MDL-65069' of git://github.com/stronk7/moodle

This commit is contained in:
Sara Arjona 2019-04-25 08:24:33 +02:00
commit 471b4e371b

View File

@ -234,7 +234,8 @@ class discussion_list {
'inpagereply' => true,
'edit' => 0
);
$mformpost = new \mod_forum_post_form('post.php', $formparams, 'post', '', array('id' => 'mformforum'));
$posturl = new \moodle_url('/mod/forum/post.php');
$mformpost = new \mod_forum_post_form($posturl, $formparams, 'post', '', array('id' => 'mformforum'));
$discussionsubscribe = \mod_forum\subscriptions::get_user_default_subscription($forumrecord, $coursecontext, $cm, null);
$params = array('reply' => 0, 'forum' => $forumrecord->id, 'edit' => 0) +