mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Force rebuild of course cache - just in case!
This commit is contained in:
parent
1b58c28d15
commit
5195536408
1 changed files with 4 additions and 0 deletions
|
@ -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
|
if (!file_exists("$CFG->dirroot/course/format/$course->format.php")) { // Default format is weeks
|
||||||
$course->format = "weeks";
|
$course->format = "weeks";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue