diff --git a/mod/quiz/index.php b/mod/quiz/index.php index f119782d81f..b8ff44b1488 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -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 = ''; diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index cf54fbb4d3e..fea6e997c98 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -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 diff --git a/mod/quiz/view.php b/mod/quiz/view.php index a99f8254eff..9cf69d052ee 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -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;