mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
return to the proper page after editing a question in the question bank.
This commit is contained in:
parent
d340fde6c4
commit
561fe61df3
2 changed files with 5 additions and 3 deletions
|
@ -321,7 +321,10 @@ function question_list($course, $pageurl, $categoryid, $cm = null,
|
|||
|
||||
// edit, hide, delete question, using question capabilities, not quiz capabilieies
|
||||
if ($canedit) {
|
||||
echo "<a title=\"$stredit\" href=\"$CFG->wwwroot/question/question.php?id=$question->id\"><img
|
||||
$questionparams = (($cm !== null)? array('cmid' => $cm->id) : array()) +
|
||||
(array('returnurl' => $pageurl->out(), 'id'=>$question->id));
|
||||
$questionurl = new moodle_url("$CFG->wwwroot/question/question.php", $questionparams);
|
||||
echo "<a title=\"$stredit\" href=\"".$questionurl->out()."\"><img
|
||||
src=\"$CFG->pixpath/t/edit.gif\" alt=\"$stredit\" /></a> ";
|
||||
// hide-feature
|
||||
if($question->hidden) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue