Skip to content

Commit 4fe5da8

Browse files
committed
fix cli install
1 parent 97bdd0d commit 4fe5da8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

install/cli-install.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
* php cli-install.php --database_server=localhost --database=db --database_user=dbuser --database_password=dbpass --table_prefix=evo_ --cmsadmin=admin --cmsadminemail=dmi3yy@gmail.com --cmspassword=123456 --language=ru --mode=new --installData=n --removeInstall=y
55
*/
66
echo 'Install Evolution CMS?'.PHP_EOL;
7+
$path = dirname(__FILE__) . '/';
78

8-
9+
/*
910
$autoloader = realpath(__DIR__.'/../vendor/autoload.php');
1011
if (file_exists($autoloader) && is_readable($autoloader)) {
1112
include_once($autoloader);
12-
}
13+
}*/
1314

1415
$self = 'install/index.php';
1516
$base_path = str_replace($self,'',str_replace('\\','/', __FILE__));
@@ -29,8 +30,8 @@
2930
define('MGR_DIR', 'manager');
3031
}
3132

32-
require_once("lang.php");
33-
require_once('../'.MGR_DIR.'/includes/version.inc.php');
33+
require_once($path."lang.php");
34+
require_once($path.'../'.MGR_DIR.'/includes/version.inc.php');
3435

3536
$moduleName = "EVO";
3637
$moduleVersion = $modx_branch.' '.$modx_version;

0 commit comments

Comments
 (0)