From: Tim Hunt Date: Thu, 19 Nov 2009 19:09:04 +0000 (+0000) Subject: question editing from quiz: MDL-20709 better return URL. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6224d7a10d7e4a718dd03df1195e6ffc50e078e7;p=moodle.git question editing from quiz: MDL-20709 better return URL. --- diff --git a/question/type/questiontype.php b/question/type/questiontype.php index fe277f44b5..7157f97c07 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -1061,7 +1061,8 @@ class default_questiontype { if (!empty($cmoptions->thispageurl)) { /// The module allow editing in the same window, print an ordinary link. - return 'wwwroot . $linkurl . '&returnurl=' . + urlencode($cmoptions->thispageurl . '#q' . $question->id) . '" title="' . $stredit . '">' . $linktext . ''; } else { /// We have to edit in a pop-up.