HOR-4662
This commit is contained in:
@@ -84,6 +84,8 @@ try {
|
||||
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
||||
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
||||
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
||||
// In order to keep the custom plugins state, it is required to set the attribute before saving the info
|
||||
$plugin->setEnabled(true);
|
||||
$pluginRegistry->savePlugin($plugin->getNamespace());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ if ($aux['extension'] != 'dat') {
|
||||
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
||||
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
||||
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
||||
// In order to keep the custom plugins state, it is required to set the attribute before saving the info
|
||||
$plugin->setEnabled(true);
|
||||
$pluginRegistry->savePlugin($plugin->getNamespace());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user