MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls

This commit is contained in:
Tim Hunt 2016-01-15 10:58:19 +00:00
parent e8d5100212
commit a82f26e324
3 changed files with 2 additions and 4 deletions

View File

@ -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 = '';

View File

@ -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

View File

@ -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;