ALF-31: Add evaluation before run the buils.php class, when a plugin changes its status

This commit is contained in:
Gustavo Silva
2016-08-19 14:57:09 -04:00
parent f05db3088f
commit fcece888e5
2 changed files with 12 additions and 7 deletions

View File

@@ -88,16 +88,20 @@ if ($handle = opendir( PATH_PLUGINS )) {
}
}
closedir( $handle );
/**
* Calls PMExtensionClass Builder to include Plugins changes.
*/
$config = Bootstrap::getSystemConfiguration();
$phpBuilder = new ProcessMakerPhpBuilderHelper();
$phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins();
if (!empty($phpBuilder->enabledExtensions)) {
$phpBuilder->extension = true;
if (!empty($config['experimental_features'])) {
$phpBuilder = new ProcessMakerPhpBuilderHelper();
$phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins();
if (!empty($phpBuilder->enabledExtensions)) {
$phpBuilder->extension = true;
}
$phpBuilder->buildAll();
}
$phpBuilder->buildAll();
}
//$oPluginRegistry->showArrays();