mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-80516' of https://github.com/paulholden/moodle
This commit is contained in:
commit
d6254da301
@ -1550,7 +1550,7 @@ class core_plugin_manager {
|
||||
|
||||
$provider = \core\update\checker::instance();
|
||||
|
||||
if (!$provider->enabled() or during_initial_install()) {
|
||||
if (!$provider->enabled() || $component === '' || during_initial_install()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -440,8 +440,11 @@ class checker {
|
||||
|
||||
$pluginman = \core_plugin_manager::instance();
|
||||
foreach ($pluginman->get_plugins() as $type => $plugins) {
|
||||
// Iterate over installed plugins and determine which are non-standard and eligible for update checks. Note that we
|
||||
// disregard empty component names here, to ensure we only request valid data from the update site (in the case of an
|
||||
// improperly removed plugin containing sub-plugins, we would get an empty value here for each sub-plugin).
|
||||
foreach ($plugins as $plugin) {
|
||||
if (!$plugin->is_standard()) {
|
||||
if ($plugin->component !== '' && !$plugin->is_standard()) {
|
||||
$this->currentplugins[$plugin->component] = $plugin->versiondisk;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user