mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
question editing from quiz: MDL-20709 better return URL.
This commit is contained in:
parent
5c86dc7c72
commit
6224d7a10d
@ -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 . '&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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user