MDL-34870 enrol_cohort - don't need to do useless work

This commit is contained in:
Dan Poltawski
2012-08-22 10:02:53 +08:00
parent cff2026980
commit d94ef56395
+1 -8
View File
@@ -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.
}
/**