]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10338 - quiz index page does not work in weekscss format. Merged from MOODLE_18_S...
authortjhunt <tjhunt>
Fri, 21 Sep 2007 11:10:37 +0000 (11:10 +0000)
committertjhunt <tjhunt>
Fri, 21 Sep 2007 11:10:37 +0000 (11:10 +0000)
mod/quiz/index.php

index 60aa60448a74f9607716b51cebe121c49e898dde..99c87adcc38949de02f30f93488e18fa40ec400e 100644 (file)
@@ -48,7 +48,7 @@
     $headings = array(get_string('name'), get_string('quizcloses', 'quiz'));
     $align = array('left', 'left');
     $colsize = array('', '');
-    if ($course->format == "weeks") {
+    if ($course->format == "weeks" || $course->format == "weekscss") {
         array_unshift($headings, get_string('week'));
         array_unshift($align, 'center');
         array_unshift($colsize, 10);
@@ -84,7 +84,7 @@
 
         // Section number if necessary.
         $strsection = '';
-        if ($course->format == "weeks" or $course->format == "topics") {
+        if ($course->format == "weeks" || $course->format == "weekscss" || $course->format == "topics") {
             if ($quiz->section !== $currentsection) {
                 if ($quiz->section) {
                     $strsection = $quiz->section;