mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fixed links on edit icons so that they return to question bank page.
This commit is contained in:
parent
7cd4fda6e7
commit
0de94538ee
1 changed files with 4 additions and 2 deletions
|
@ -276,12 +276,14 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreak
|
|||
}
|
||||
echo '</td><td align="center">';
|
||||
|
||||
$context = $quiz->id ? '&contextquiz='.$quiz->id : '';
|
||||
if ($question->qtype != 'random') {
|
||||
quiz_question_preview_button($quiz, $question);
|
||||
}
|
||||
if ($canedit) {
|
||||
echo "<a title=\"$stredit\" href=\"$CFG->wwwroot/question/question.php?id=$qnum$context\">
|
||||
$returnurl = $pageurl->out();
|
||||
$questionparams = array('returnurl' => $returnurl, 'cmid'=>$quiz->cmid, 'id' => $qnum);
|
||||
$questionurl = new moodle_url("$CFG->wwwroot/question/question.php", $questionparams);
|
||||
echo "<a title=\"$stredit\" href=\"".$questionurl->out()."\">
|
||||
<img src=\"$CFG->pixpath/t/edit.gif\" class=\"iconsmall\" alt=\"$stredit\" /></a>";
|
||||
}
|
||||
if ($allowdelete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue