Force rebuild of course cache - just in case!

This commit is contained in:
moodler 2003-08-14 10:32:51 +00:00
parent 1b58c28d15
commit 5195536408

View File

@ -86,6 +86,10 @@
}
}
if (empty($course->modinfo)) { // Course cache was never made
rebuild_course_cache($course->id);
}
if (!file_exists("$CFG->dirroot/course/format/$course->format.php")) { // Default format is weeks
$course->format = "weeks";
}