mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
Force rebuild of course cache - just in case!
This commit is contained in:
parent
1b58c28d15
commit
5195536408
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user