Skip to content

Commit

Permalink
MDL-52682 mod_forum: Correct redirect URL when marking posts as read
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 22, 2016
1 parent aa0b28c commit 54fdc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/markposts.php
Expand Up @@ -57,9 +57,9 @@
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
Expand Down

0 comments on commit 54fdc12

Please sign in to comment.