mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merged from MOODLE_14_STABLE - Closing SC#66 - more
This commit is contained in:
parent
1ad9d071c9
commit
e069b3e2fe
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user