mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Merge branch 'MDL-38647' of git://github.com/timhunt/moodle
This commit is contained in:
commit
d89eed6fca
2 changed files with 2 additions and 2 deletions
|
@ -1192,7 +1192,7 @@ class quiz_attempt {
|
|||
*/
|
||||
public function render_question_at_step($slot, $seq, $reviewing, $thispageurl = '') {
|
||||
return $this->quba->render_question_at_step($slot, $seq,
|
||||
$this->get_display_options($reviewing),
|
||||
$this->get_display_options_with_edit_link($reviewing, $slot, $thispageurl),
|
||||
$this->get_question_number($slot));
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ $seq = optional_param('step', null, PARAM_INT);
|
|||
$baseurl = new moodle_url('/mod/quiz/reviewquestion.php',
|
||||
array('attempt' => $attemptid, 'slot' => $slot));
|
||||
$currenturl = new moodle_url($baseurl);
|
||||
if ($seq !== 0) {
|
||||
if (!is_null($seq)) {
|
||||
$currenturl->param('step', $seq);
|
||||
}
|
||||
$PAGE->set_url($currenturl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue