HOR-3771
Renamed Installer controller to InstallerModule
This commit is contained in:
@@ -1427,7 +1427,7 @@ class adminProxy extends HttpProxyController
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Database server Version (MySQL version)
|
//Database server Version (MySQL version)
|
||||||
$installer = new Installer();
|
$installer = new InstallerModule();
|
||||||
$systemInfo = $installer->getSystemInfo();
|
$systemInfo = $installer->getSystemInfo();
|
||||||
try {
|
try {
|
||||||
$params['mysql'] = mysql_get_server_info();
|
$params['mysql'] = mysql_get_server_info();
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
|
|
||||||
global $translation;
|
global $translation;
|
||||||
|
|
||||||
include PATH_LANGUAGECONT . "translation." . SYS_LANG;
|
include PATH_LANGUAGECONT . "translation." . SYS_LANG;
|
||||||
|
|
||||||
class Installer extends Controller
|
class InstallerModule extends Controller
|
||||||
{
|
{
|
||||||
public $path_config;
|
public $path_config;
|
||||||
public $path_languages;
|
public $path_languages;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ switch ($option) {
|
|||||||
default:
|
default:
|
||||||
require_once (PATH_CONTROLLERS . "installer.php");
|
require_once (PATH_CONTROLLERS . "installer.php");
|
||||||
|
|
||||||
$installer = new Installer();
|
$installer = new InstallerModule();
|
||||||
|
|
||||||
$systemInfo = $installer->getSystemInfo();
|
$systemInfo = $installer->getSystemInfo();
|
||||||
|
|
||||||
|
|||||||
@@ -523,7 +523,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
|
|||||||
transactionLog(PATH_CONTROLLERS.'installer.php');
|
transactionLog(PATH_CONTROLLERS.'installer.php');
|
||||||
$pathFile = PATH_CONTROLLERS . 'installer.php';
|
$pathFile = PATH_CONTROLLERS . 'installer.php';
|
||||||
require_once ($pathFile);
|
require_once ($pathFile);
|
||||||
$controller = 'Installer';
|
$controller = InstallerModule::class;
|
||||||
|
|
||||||
// if the method name is empty set default to index method
|
// if the method name is empty set default to index method
|
||||||
if (strpos( SYS_TARGET, '/' ) !== false) {
|
if (strpos( SYS_TARGET, '/' ) !== false) {
|
||||||
@@ -535,7 +535,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
|
|||||||
$controllerAction = ($controllerAction != '' && $controllerAction != 'login') ? $controllerAction : 'index';
|
$controllerAction = ($controllerAction != '' && $controllerAction != 'login') ? $controllerAction : 'index';
|
||||||
|
|
||||||
// create the installer controller and call its method
|
// 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 = new $controller();
|
||||||
$installer->setHttpRequestData( $_REQUEST );
|
$installer->setHttpRequestData( $_REQUEST );
|
||||||
|
|||||||
Reference in New Issue
Block a user