Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-27932 quiz - fix some calls to quiz_feedback_for_grade()

  • Loading branch information...
commit 1b327dec8a6d364ab85865d996b14b3a42ad2b04 1 parent 7a7d34f
@stronk7 stronk7 authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  mod/quiz/index.php
  2. +3 −3 mod/quiz/renderer.php
View
2  mod/quiz/index.php
@@ -177,7 +177,7 @@
$grade = get_string('outofshort', 'quiz', $a);
}
if ($alloptions->overallfeedback) {
- $feedback = quiz_feedback_for_grade($grades[$quiz->id], $quiz, $context, $cm);
+ $feedback = quiz_feedback_for_grade($grades[$quiz->id], $quiz, $context);
}
}
$data[] = $grade;
View
6 mod/quiz/renderer.php
@@ -758,7 +758,7 @@ public function view_table($quiz, $context, $viewobj) {
if ($viewobj->feedbackcolumn && $attempt->timefinish > 0) {
if ($attemptoptions->overallfeedback) {
- $row[] = quiz_feedback_for_grade($attemptgrade, $quiz, $context, $cm);
+ $row[] = quiz_feedback_for_grade($attemptgrade, $quiz, $context);
} else {
$row[] = '';
}
@@ -838,7 +838,7 @@ public function view_result_info($quiz, $context, $cm, $viewobj) {
if ($viewobj->feedbackcolumn) {
$resultinfo .= $this->heading(get_string('overallfeedback', 'quiz'), 3, 'main');
$resultinfo .= html_writer::tag('p',
- quiz_feedback_for_grade($viewobj->mygrade, $quiz, $context, $cm),
+ quiz_feedback_for_grade($viewobj->mygrade, $quiz, $context),
array('class' => 'quizgradefeedback')).'\n';
}
@@ -997,4 +997,4 @@ class mod_quiz_view_object {
* @var int $lastfinishedattempt contains a pointer to the last attempt in the attempts array.
*/
public $lastfinishedattempt;
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.