]> git.mjollnir.org Git - moodle.git/commitdiff
mod/quiz/view No-longer display final grade when quiz settings forbid it.
authormjollnir_ <mjollnir_>
Mon, 15 May 2006 21:52:18 +0000 (21:52 +0000)
committermjollnir_ <mjollnir_>
Mon, 15 May 2006 21:52:18 +0000 (21:52 +0000)
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 <peter.bulmer@catalyst.net.nz>
Merged from MOODLE_16_STABLE

mod/quiz/view.php

index e79c92bf00da8c153fcbd7d6719aadb8ec5e9761..5adbaad4a8050721d7038e4e522605a639c9c73b 100644 (file)
             }
         } 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);