Permalink
Browse files

Merge branch 'quiz_feedback_for_grade' of git://github.com/stronk7/mo…

…odle
  • Loading branch information...
2 parents f2113d6 + 1b327de commit 3fc7c06b995d723642d35d819548080670d77c77 Sam Hemelryk committed Jun 20, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 mod/quiz/index.php
  2. +3 −3 mod/quiz/renderer.php
View
@@ -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;
@@ -800,7 +800,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[] = '';
}
@@ -880,7 +880,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';
}
@@ -1039,4 +1039,4 @@ class mod_quiz_view_object {
* @var int $lastfinishedattempt contains a pointer to the last attempt in the attempts array.
*/
public $lastfinishedattempt;
-}
+}

0 comments on commit 3fc7c06

Please sign in to comment.