From 0c49258b99855063664470ffcb1454d57dfc34c2 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 15 May 2006 21:52:18 +0000 Subject: [PATCH] mod/quiz/view No-longer display final grade when quiz settings forbid it. Changed view.php so that it checked if there were any attempts with concealed grades before printing the student's overall score. Credit: Peter Bulmer Merged from MOODLE_16_STABLE --- mod/quiz/view.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/quiz/view.php b/mod/quiz/view.php index e79c92bf00..5adbaad4a8 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -367,7 +367,10 @@ } } else { print_heading(get_string("nomoreattempts", "quiz")); - if ($quiz->grade and $quiz->sumgrades) { + //if $quiz->grade and $quiz->sumgrades, and student is allowed to + //see summary statistics (no attempt's grade is concealed), + //show the student their final grade + if ($quiz->grade and $quiz->sumgrades and $overallstats) { print_heading(get_string("yourfinalgradeis", "quiz", "$mygrade / $quiz->grade")); } print_continue('../../course/view.php?id='.$course->id); -- 2.39.5