mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls
This commit is contained in:
parent
e8d5100212
commit
a82f26e324
@ -172,7 +172,7 @@ foreach ($quizzes as $quiz) {
|
||||
// Grade and feedback.
|
||||
$attempts = quiz_get_user_attempts($quiz->id, $USER->id, 'all');
|
||||
list($someoptions, $alloptions) = quiz_get_combined_reviewoptions(
|
||||
$quiz, $attempts, $context);
|
||||
$quiz, $attempts);
|
||||
|
||||
$grade = '';
|
||||
$feedback = '';
|
||||
|
@ -1416,8 +1416,6 @@ function quiz_get_review_options($quiz, $attempt, $context) {
|
||||
*
|
||||
* @param object $quiz the quiz instance.
|
||||
* @param array $attempts an array of attempt objects.
|
||||
* @param $context the roles and permissions context,
|
||||
* normally the context for the quiz module instance.
|
||||
*
|
||||
* @return array of two options objects, one showing which options are true for
|
||||
* at least one of the attempts, the other showing which options are true
|
||||
|
@ -153,7 +153,7 @@ $output = $PAGE->get_renderer('mod_quiz');
|
||||
// Print table with existing attempts.
|
||||
if ($attempts) {
|
||||
// Work out which columns we need, taking account what data is available in each attempt.
|
||||
list($someoptions, $alloptions) = quiz_get_combined_reviewoptions($quiz, $attempts, $context);
|
||||
list($someoptions, $alloptions) = quiz_get_combined_reviewoptions($quiz, $attempts);
|
||||
|
||||
$viewobj->attemptcolumn = $quiz->attempts != 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user