Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-34870_23' of git://github.com/aolley/moodle into MO…

…ODLE_23_STABLE
commit fb4e6948d0596ff23200c3c2724d4c023e66037a 2 parents 70dc5ad + 6353a60
@danpoltawski danpoltawski authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 enrol/cohort/lib.php
View
4 enrol/cohort/lib.php
@@ -124,9 +124,7 @@ public function course_updated($inserted, $course, $data) {
global $CFG;
if (!$inserted) {
- // sync cohort enrols
- require_once("$CFG->dirroot/enrol/cohort/locallib.php");
- enrol_cohort_sync($course->id);
+ // Let's not sync cohorts anytime a course is updated...
} else {
// cohorts are never inserted automatically
}
Please sign in to comment.
Something went wrong with that request. Please try again.