up observations

This commit is contained in:
qronald
2017-02-06 13:37:20 -04:00
parent 9620a7bb34
commit fc7c3b6a2b

View File

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