question editing from quiz: MDL-20709 better return URL.
This commit is contained in:
@@ -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 . '&returnurl=' . urlencode($cmoptions->thispageurl) .
|
||||
return '<a href="' . $CFG->wwwroot . $linkurl . '&returnurl=' .
|
||||
urlencode($cmoptions->thispageurl . '#q' . $question->id) .
|
||||
'" title="' . $stredit . '">' . $linktext . '</a>';
|
||||
} else {
|
||||
/// We have to edit in a pop-up.
|
||||
|
||||
Reference in New Issue
Block a user