Merge branch 'MDL-66328_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE

This commit is contained in:
Andrew Nicols
2019-09-11 12:21:45 +08:00
+4
View File
@@ -69,6 +69,10 @@ $strnotingroup = get_string('notingrouplist', 'group');
$strnogroup = get_string('nogroup', 'group');
$strnogrouping = get_string('nogrouping', 'group');
// This can show all users and all groups in a course.
// This is lots of data so allow this script more resources.
raise_memory_limit(MEMORY_EXTRA);
// Get all groupings and sort them by formatted name.
$groupings = $DB->get_records('groupings', array('courseid'=>$courseid), 'name');
foreach ($groupings as $gid => $grouping) {