Merge branch 'MDL-52682-master' of git://github.com/andrewnicols/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 25 Jan 2016 07:38:29 +0000 (15:38 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 29 Jan 2016 02:15:17 +0000 (10:15 +0800)
mod/forum/markposts.php

index 382b41f..e6b9442 100644 (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