From: mjollnir_ Date: Mon, 15 May 2006 21:52:18 +0000 (+0000) Subject: mod/quiz/view No-longer display final grade when quiz settings forbid it. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0c49258b99855063664470ffcb1454d57dfc34c2;p=moodle.git 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 --- 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);