mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Fix handling of information on updates for absent plugins
This commit is contained in:
parent
efa1372cdc
commit
2b6779af8f
@ -298,6 +298,20 @@ class UpdateChecker
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove information about updates for absent plugins.
|
||||||
|
$updates = AvailableUpdate::all();
|
||||||
|
$plugins = PluginUtils::discoverPlugins();
|
||||||
|
foreach ($updates as $update) {
|
||||||
|
$name = $update->target;
|
||||||
|
// Skip information about the core.
|
||||||
|
if (!strcmp($name, 'core')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
elseif (!in_array($name, $plugins)) {
|
||||||
|
$this->deleteUpdate($name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user