mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-52682-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
99e96d83b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user