mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'MDL-62571_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
eeb0597493
@ -350,7 +350,7 @@ if (!empty($forum)) { // User is starting a new discussion in a forum
|
||||
$event->add_record_snapshot('forum_discussions', $discussion);
|
||||
$event->trigger();
|
||||
|
||||
redirect("view.php?f=$discussion->forum");
|
||||
redirect(new moodle_url('/mod/forum/view.php', ['f' => $discussion->forum]));
|
||||
|
||||
} else if (forum_delete_post($post, has_capability('mod/forum:deleteanypost', $modcontext),
|
||||
$course, $cm, $forum)) {
|
||||
@ -845,7 +845,7 @@ if ($mform_post->is_cancelled()) {
|
||||
|
||||
} else { // Adding a new discussion.
|
||||
// The location to redirect to after successfully posting.
|
||||
$redirectto = new moodle_url('view.php', array('f' => $fromform->forum));
|
||||
$redirectto = new moodle_url('/mod/forum/view.php', array('f' => $fromform->forum));
|
||||
|
||||
$fromform->mailnow = empty($fromform->mailnow) ? 0 : 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user