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

This commit is contained in:
Dan Poltawski
2012-08-22 10:03:40 +08:00
parent 892600868b
commit 6ab7e3a3d5
+1 -8
View File
@@ -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.
}
/**