mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-65069 mod_forum: moodle_url to ensure we call the correct post.php
No matter where the inline edition is happening (forum or social course)
This commit is contained in:
parent
ed77525589
commit
be35977db8
@ -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) +
|
||||
|
Loading…
x
Reference in New Issue
Block a user