This commit is contained in:
Paula Quispe
2018-01-08 16:09:45 -04:00
parent 4c63633189
commit e7385e510a
7 changed files with 15 additions and 18 deletions

View File

@@ -284,8 +284,8 @@ use ProcessMaker\Plugins\PluginRegistry;
// new installer, extjs based
define('PATH_DATA', PATH_C);
require_once ( PATH_CONTROLLERS . 'installer.php' );
$controller = 'Installer';
require_once ( PATH_CONTROLLERS . 'InstallerModule.php' );
$controller = InstallerModule::class;
// if the method name is empty set default to index method
if (strpos(SYS_TARGET, '/') !== false) {
@@ -298,7 +298,7 @@ use ProcessMaker\Plugins\PluginRegistry;
$controllerAction = ($controllerAction != '' && $controllerAction != 'login')? $controllerAction: 'index';
// create the installer controller and call its method
if( is_callable(Array('Installer', $controllerAction)) ) {
if (is_callable([InstallerModule::class, $controllerAction])) {
$installer = new $controller();
$installer->setHttpRequestData($_REQUEST);
$installer->call($controllerAction);
@@ -628,7 +628,7 @@ use ProcessMaker\Plugins\PluginRegistry;
$noLoginFolders[] = 'services';
$noLoginFolders[] = 'tracker';
$noLoginFolders[] = 'installer';
$noLoginFolders[] = 'InstallerModule';
// This sentence is used when you lost the Session
if (! in_array(SYS_TARGET, $noLoginFiles)

View File

@@ -520,8 +520,8 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
// new installer, extjs based
define( 'PATH_DATA', PATH_C );
//NewRelic Snippet - By JHL
transactionLog(PATH_CONTROLLERS.'installer.php');
$pathFile = PATH_CONTROLLERS . 'installer.php';
transactionLog(PATH_CONTROLLERS . 'InstallerModule.php');
$pathFile = PATH_CONTROLLERS . 'InstallerModule.php';
require_once ($pathFile);
$controller = InstallerModule::class;
@@ -535,8 +535,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
$controllerAction = ($controllerAction != '' && $controllerAction != 'login') ? $controllerAction : 'index';
// create the installer controller and call its method
if (is_callable( Array (InstallerModule::class,$controllerAction
) )) {
if (is_callable([InstallerModule::class, $controllerAction])) {
$installer = new $controller();
$installer->setHttpRequestData( $_REQUEST );
//NewRelic Snippet - By JHL
@@ -968,7 +967,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
$noLoginFolders[] = 'services';
$noLoginFolders[] = 'tracker';
$noLoginFolders[] = 'installer';
$noLoginFolders[] = 'InstallerModule';
// This sentence is used when you lost the Session
if (! in_array( SYS_TARGET, $noLoginFiles ) && ! in_array( SYS_COLLECTION, $noLoginFolders ) && $bWE != true && $collectionPlugin != 'services') {