mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-72324-incompatible-check' of https://github.com/Peterburnett/moodle
This commit is contained in:
commit
b184248c47
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user