mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
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:
parent
02755c4f95
commit
b7481cf4aa
6 changed files with 32 additions and 18 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue