From 6224d7a10d7e4a718dd03df1195e6ffc50e078e7 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 19 Nov 2009 19:09:04 +0000 Subject: [PATCH] question editing from quiz: MDL-20709 better return URL. --- question/type/questiontype.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.5