From 61937f48f7570d9c4a174677987afe3f9f9477bc Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 21 Jan 2016 15:31:51 +0800 Subject: [PATCH] MDL-52682 mod_forum: Correct redirect URL when marking posts as read --- mod/forum/markposts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/markposts.php b/mod/forum/markposts.php index 382b41f1f83..e6b94428ad9 100644 --- a/mod/forum/markposts.php +++ b/mod/forum/markposts.php @@ -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