mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-66328 groups: overview page can require lots of memory
This commit is contained in:
parent
a672f021ea
commit
f1f3101b4e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user