mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
question editing from quiz: MDL-20709 better return URL.
This commit is contained in:
parent
5c86dc7c72
commit
6224d7a10d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue