Merge branch 'MDL-52682-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
David Monllao 2016-01-25 15:38:29 +08:00
commit 99e96d83b6

View File

@ -57,9 +57,9 @@ $user = $USER;
require_login($course, false, $cm);
if ($returnpage == 'index.php') {
$returnto = forum_go_back_to(new moodle_url("/mod/forum/$returnpage", array('id' => $course->id)));
$returnto = new moodle_url("/mod/forum/$returnpage", array('id' => $course->id));
} else {
$returnto = forum_go_back_to(new moodle_url("/mod/forum/$returnpage", array('f' => $forum->id)));
$returnto = new moodle_url("/mod/forum/$returnpage", array('f' => $forum->id));
}
if (isguestuser()) { // Guests can't change forum