mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-34870 enrol_cohort - don't need to do useless work
This commit is contained in:
parent
cff2026980
commit
d94ef56395
@ -121,14 +121,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.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user