Merged in gsilvasaire/processmaker/ALF-31 (pull request #4792)

ALF-31
This commit is contained in:
Julio Cesar Laura Avendaño
2016-08-19 17:48:20 -04:00
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();