MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls

This commit is contained in:
Tim Hunt
2016-01-19 09:05:42 +08:00
committed by Andrew Nicols
parent 79b58bee2b
commit 229072cc77
3 changed files with 2 additions and 4 deletions
+1 -1
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 = '';
-2
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
+1 -1
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;