ALF-31: Add evaluation before run the buils.php class, when a plugin changes its status
This commit is contained in:
@@ -39,7 +39,7 @@ class ProcessMakerPhpBuilderHelper
|
||||
* Build temporal directory
|
||||
* @var string
|
||||
*/
|
||||
public $buildTempDir = "./workflow/buildTemp";
|
||||
public $buildTempDir = "./shared/buildTemp";
|
||||
/**
|
||||
* Production directories
|
||||
* @var array
|
||||
@@ -141,10 +141,11 @@ class ProcessMakerPhpBuilderHelper
|
||||
}
|
||||
$this->baseDir = empty($config['base_dir']) ? $baseDir : $config['base_dir'];
|
||||
$this->publicDir = $this->baseDir . "/workflow/public_html";
|
||||
$this->buildTempDir = $this->baseDir . "/workflow/buildTemp";
|
||||
$this->buildTempDir = $this->baseDir . "/shared/buildTemp";
|
||||
$this->logDir = $this->baseDir . "/shared/log";
|
||||
if (defined('PATH_DATA')) {
|
||||
$this->logDir = PATH_DATA . "log";
|
||||
$this->buildTempDir = PATH_DATA . "buildTemp";
|
||||
}
|
||||
$this->utils->__set("logDir", $this->logDir);
|
||||
$this->utils->refreshDir($this->buildTempDir);
|
||||
|
||||
@@ -88,16 +88,20 @@ if ($handle = opendir( PATH_PLUGINS )) {
|
||||
}
|
||||
}
|
||||
closedir( $handle );
|
||||
|
||||
/**
|
||||
* Calls PMExtensionClass Builder to include Plugins changes.
|
||||
*/
|
||||
$config = Bootstrap::getSystemConfiguration();
|
||||
|
||||
if (!empty($config['experimental_features'])) {
|
||||
$phpBuilder = new ProcessMakerPhpBuilderHelper();
|
||||
$phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins();
|
||||
if (!empty($phpBuilder->enabledExtensions)) {
|
||||
$phpBuilder->extension = true;
|
||||
}
|
||||
$phpBuilder->buildAll();
|
||||
}
|
||||
}
|
||||
|
||||
//$oPluginRegistry->showArrays();
|
||||
|
||||
Reference in New Issue
Block a user