Merged from MOODLE_14_STABLE - Closing SC#66 - more

This commit is contained in:
martinlanghoff 2005-01-22 09:06:51 +00:00
parent 1ad9d071c9
commit e069b3e2fe

View File

@ -33,6 +33,7 @@
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
$course->format = clean_param($course->format, PARAM_ALPHA);
if (!file_exists($CFG->dirroot.'/course/format/'.$course->format.'/format.php')) {
$course->format = 'weeks'; // Default format is weeks
}