This commit is contained in:
Julio Cesar Laura Avendaño
2018-06-14 10:37:09 -04:00
parent b021516c66
commit 7a76ef40d8
2 changed files with 4 additions and 0 deletions

View File

@@ -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());
}
}

View File

@@ -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());
}
}