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

This commit is contained in:
Tim Hunt 2009-11-19 19:09:04 +00:00
parent 5c86dc7c72
commit 6224d7a10d

View File

@ -1061,7 +1061,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.