Skip to content

Commit

Permalink
removes check for obsolete feature from "supports" callback.
Browse files Browse the repository at this point in the history
this feature check can be safely removed without replacement at this
point.
Moodle 2.8 was a long time ago, this plugin supports Moodle 4.1 and up.
For reference, check the "2.8" section in the upgrade note for activity
plugins, here: https://github.com/moodle/moodle/blob/main/mod/upgrade.txt
  • Loading branch information
stopfstedt committed Oct 18, 2024
1 parent be6e5af commit 9d6e050
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,12 +884,6 @@ function checklist_supports($feature) {
}
}

if ((int)$CFG->branch < 28) {
if ($feature === FEATURE_GROUPMEMBERSONLY) {
return true;
}
}

switch ($feature) {
case FEATURE_GROUPS:
return true;
Expand Down

0 comments on commit 9d6e050

Please sign in to comment.