MDL-82393 course: Deprecate the $course argument in group_selector

Deprecates the $course parameter in the constructor of the
core_course\output\actionbar\group_selector class. This parameter is no
longer used, as the $course object can now be obtained through the
$context class property. Additionaly, the $course class property has
been removed in accordance with this change.
This commit is contained in:
Mihail Geshoski 2024-07-12 13:50:04 +08:00
parent 02755c4f95
commit b7481cf4aa
6 changed files with 32 additions and 18 deletions

View file

@ -104,7 +104,7 @@ class grading_actionmenu implements templatable, renderable {
if (groups_get_activity_groupmode($cm, $course)) {
$data['groupselector'] = $actionbarrenderer->render(
new \core_course\output\actionbar\group_selector($course, $PAGE->context));
new \core_course\output\actionbar\group_selector(null, $PAGE->context));
}
if (groups_get_activity_group($cm)) {