Show one page at a time by default during quiz review. 3.9

Show one page at a time by default during quiz review. 3.9

by S G -
Number of replies: 0

This is in continuation of this closed thread, updated for 3.9 : https://moodle.org/mod/forum/discuss.php?d=238979

By default, if a quiz has a small number of questions (I believe the minimum number is 25) , all the questions get displayed on one page during review, with a link for 'Display one page at a time'.

I wanted to make the display default to one page at a time. This is the solution :

Go to mod > quiz > review.php

Within the top few lines, find this line :

$showall   = optional_param('showall', null, PARAM_BOOL);

Change the null to 0. Like this :

$showall   = optional_param('showall', 0, PARAM_BOOL);

Now the review display will be the same number as the quiz display. (Same number of questions per page.)

Average of ratings: -