mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Use PluginInfo::needsUpdate instead of checking versions directly
This commit is contained in:
parent
b0aa66c7cf
commit
5282e789ba
@ -117,10 +117,10 @@ class PluginManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
$plugin_info = PluginInfo::fromState($plugin_state);
|
$plugin_info = PluginInfo::fromState($plugin_state);
|
||||||
if ($plugin_info->getVersion() != $plugin_info->getInstalledVersion()) {
|
if ($plugin_info->needsUpdate()) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
sprintf(
|
sprintf(
|
||||||
'Versions of "%s" plugin in database and in file system are different!',
|
'Update "%s" plugin before use it!',
|
||||||
$plugin_info->getName()
|
$plugin_info->getName()
|
||||||
),
|
),
|
||||||
E_USER_WARNING
|
E_USER_WARNING
|
||||||
|
Loading…
Reference in New Issue
Block a user