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

This commit is contained in:
Dan Poltawski
2012-08-22 09:52:58 +08:00
+1 -3
View File
@@ -124,9 +124,7 @@ class enrol_cohort_plugin extends enrol_plugin {
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
}