Skip to content

Commit

Permalink
MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and andrewnicols committed Jan 19, 2016
1 parent 42c2ceb commit 71b091c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/index.php
Expand Up @@ -172,7 +172,7 @@
// 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 = '';
Expand Down
2 changes: 0 additions & 2 deletions mod/quiz/locallib.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/view.php
Expand Up @@ -153,7 +153,7 @@
// 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;

Expand Down

0 comments on commit 71b091c

Please sign in to comment.