From: moodler Date: Fri, 13 Jun 2003 16:13:51 +0000 (+0000) Subject: Check existence of course format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7142bc1bbd5c0bf105e635ac88aecd61991f7fa1;p=moodle.git Check existence of course format --- diff --git a/course/view.php b/course/view.php index 1a771ef024..7cd1548afc 100644 --- a/course/view.php +++ b/course/view.php @@ -86,6 +86,10 @@ } } + 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();