question editing from quiz: MDL-20709 better return URL.

This commit is contained in:
Tim Hunt
2009-11-19 19:09:07 +00:00
parent 8d1e5fdf4a
commit 8a7b41f2a6
+2 -1
View File
@@ -928,7 +928,8 @@ class default_questiontype {
if (!empty($cmoptions->thispageurl)) {
/// The module allow editing in the same window, print an ordinary link.
return '<a href="' . $CFG->wwwroot . $linkurl . '&amp;returnurl=' . urlencode($cmoptions->thispageurl) .
return '<a href="' . $CFG->wwwroot . $linkurl . '&amp;returnurl=' .
urlencode($cmoptions->thispageurl . '#q' . $question->id) .
'" title="' . $stredit . '">' . $linktext . '</a>';
} else {
/// We have to edit in a pop-up.