Merged in feature/HOR-3771 (pull request #6005)
HOR-3771 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
c5bbf5c851
@@ -1427,7 +1427,7 @@ class adminProxy extends HttpProxyController
|
||||
}
|
||||
|
||||
//Database server Version (MySQL version)
|
||||
$installer = new Installer();
|
||||
$installer = new InstallerModule();
|
||||
$systemInfo = $installer->getSystemInfo();
|
||||
try {
|
||||
$params['mysql'] = mysql_get_server_info();
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
global $translation;
|
||||
|
||||
include PATH_LANGUAGECONT . "translation." . SYS_LANG;
|
||||
|
||||
class Installer extends Controller
|
||||
class InstallerModule extends Controller
|
||||
{
|
||||
public $path_config;
|
||||
public $path_languages;
|
||||
|
||||
@@ -26,7 +26,7 @@ switch ($option) {
|
||||
default:
|
||||
require_once (PATH_CONTROLLERS . "installer.php");
|
||||
|
||||
$installer = new Installer();
|
||||
$installer = new InstallerModule();
|
||||
|
||||
$systemInfo = $installer->getSystemInfo();
|
||||
|
||||
|
||||
@@ -523,7 +523,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
|
||||
transactionLog(PATH_CONTROLLERS.'installer.php');
|
||||
$pathFile = PATH_CONTROLLERS . 'installer.php';
|
||||
require_once ($pathFile);
|
||||
$controller = 'Installer';
|
||||
$controller = InstallerModule::class;
|
||||
|
||||
// if the method name is empty set default to index method
|
||||
if (strpos( SYS_TARGET, '/' ) !== false) {
|
||||
@@ -535,7 +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 ('Installer',$controllerAction
|
||||
if (is_callable( Array (InstallerModule::class,$controllerAction
|
||||
) )) {
|
||||
$installer = new $controller();
|
||||
$installer->setHttpRequestData( $_REQUEST );
|
||||
|
||||
Reference in New Issue
Block a user