Skip to content

Commit

Permalink
Merge branch 'MDL-72324-incompatible-check' of https://github.com/Pet…
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jun 15, 2022
2 parents b0da507 + 3a33d05 commit b184248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ function upgrade_plugins($type, $startcallback, $endcallback, $verbose) {

// Throw exception if plugin is incompatible with moodle version.
if (!empty($plugin->incompatible)) {
if ($CFG->branch <= $plugin->incompatible) {
if ($CFG->branch >= $plugin->incompatible) {
throw new plugin_incompatible_exception($component, $plugin->version);
}
}
Expand Down

0 comments on commit b184248

Please sign in to comment.