mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-37298 use progress_trace in enrol_cohort sync
This commit is contained in:
parent
0dc5a532ec
commit
c61162310c
6 changed files with 63 additions and 64 deletions
|
@ -90,7 +90,9 @@ switch ($action) {
|
|||
}
|
||||
$enrol = enrol_get_plugin('cohort');
|
||||
$enrol->add_instance($manager->get_course(), array('customint1' => $cohortid, 'roleid' => $roleid));
|
||||
enrol_cohort_sync($manager->get_course()->id);
|
||||
$trace = new null_progress_trace();
|
||||
enrol_cohort_sync($trace, $manager->get_course()->id);
|
||||
$trace->finished();
|
||||
break;
|
||||
case 'enrolcohortusers':
|
||||
//TODO: this should be moved to enrol_manual, see MDL-35618.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue