From 71b091caf8065d11683fe31c57698f97af6c3a05 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 15 Jan 2016 10:58:19 +0000 Subject: [PATCH] MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls --- mod/quiz/index.php | 2 +- mod/quiz/locallib.php | 2 -- mod/quiz/view.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mod/quiz/index.php b/mod/quiz/index.php index f119782d81f20..b8ff44b1488a8 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -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 = ''; diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index cf54fbb4d3ee9..fea6e997c985b 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 a99f8254eff3e..9cf69d052ee4a 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -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;