]> git.mjollnir.org Git - moodle.git/commitdiff
Check existence of course format
authormoodler <moodler>
Fri, 13 Jun 2003 16:13:51 +0000 (16:13 +0000)
committermoodler <moodler>
Fri, 13 Jun 2003 16:13:51 +0000 (16:13 +0000)
course/view.php

index 1a771ef02496ab0d486eeb6ed347f097d03b5315..7cd1548afca3bfd4980b57433cdb91e1d74d85d1 100644 (file)
         }
     }
 
+    if (!file_exists("format/$course->format.php")) {   // Default format is weeks
+        $course->format = "weeks";
+    }
+
     require("format/$course->format.php");  // Include the actual course format
 
     print_footer();