mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-59823-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
b26ce53776
@ -554,7 +554,7 @@ class course_enrolment_manager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all of the enrolment plugins that are active for this course.
|
||||
* Gets all of the enrolment plugins that are available for this course.
|
||||
*
|
||||
* @param bool $onlyenabled return only enabled enrol plugins
|
||||
* @return array
|
||||
|
@ -264,8 +264,14 @@ if ($bulkoperations) {
|
||||
}
|
||||
|
||||
if ($context->id != $frontpagectx->id) {
|
||||
$plugins = $manager->get_enrolment_plugins();
|
||||
foreach ($plugins as $plugin) {
|
||||
$instances = $manager->get_enrolment_instances();
|
||||
$plugins = $manager->get_enrolment_plugins(false);
|
||||
foreach ($instances as $key => $instance) {
|
||||
if (!isset($plugins[$instance->enrol])) {
|
||||
// Weird, some broken stuff in plugin.
|
||||
continue;
|
||||
}
|
||||
$plugin = $plugins[$instance->enrol];
|
||||
$bulkoperations = $plugin->get_bulk_operations($manager);
|
||||
|
||||
$pluginoptions = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user