mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'wip-MDL-37028-fix2' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
fa8b1fa4a4
@ -103,7 +103,7 @@ foreach ($courses as $courseid) {
|
||||
if ($errors) {
|
||||
if (!empty($options['fix'])) {
|
||||
// Reset the course cache to make sure cache is recalculated next time the course is viewed.
|
||||
$DB->upgrade_record('course', array('modinfo' => null, 'id' => $courseid));
|
||||
rebuild_course_cache($courseid, true);
|
||||
}
|
||||
foreach ($errors as $error) {
|
||||
cli_problem($error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user