Merge branch 'MDL-72324-incompatible-check-400' of https://github.com/Peterburnett/moodle into MOODLE_400_STABLE
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user