MDL-34870 enrol_cohort - don't need to do useless work
This commit is contained in:
@@ -126,14 +126,7 @@ class enrol_cohort_plugin extends enrol_plugin {
|
||||
* @return void
|
||||
*/
|
||||
public function course_updated($inserted, $course, $data) {
|
||||
global $CFG;
|
||||
|
||||
if (!$inserted) {
|
||||
// Let's not sync cohorts anytime a course is updated...
|
||||
} else {
|
||||
// cohorts are never inserted automatically
|
||||
}
|
||||
|
||||
// It turns out there is no need for cohorts to deal with this hook, see MDL-34870.
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user