[Installer] Directory fix
这个提交包含在:
父节点
2bf5894744
当前提交
250c8e554e
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -26,7 +26,7 @@ class Core {
|
|||
}
|
||||
|
||||
if($data['directory'] != "") {
|
||||
if (file_exists("../".$data['directory'])) {
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].$data['directory'])) {
|
||||
//pass folders real
|
||||
$counter++;
|
||||
} else {
|
||||
|
|
@ -56,7 +56,7 @@ class Core {
|
|||
|
||||
// Config path
|
||||
$template_path = 'config/database.php';
|
||||
$output_path = '../application/config/database.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'].$data['directory'].'/application/config/database.php';
|
||||
|
||||
// Open the file
|
||||
$database_file = file_get_contents($template_path);
|
||||
|
|
@ -92,7 +92,7 @@ class Core {
|
|||
|
||||
// Config path
|
||||
$template_path = 'config/config.php';
|
||||
$output_path = '../application/config/config.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'].$data['directory'].'/application/config/config.php';
|
||||
|
||||
// Open the file
|
||||
$database_file = file_get_contents($template_path);
|
||||
|
|
|
|||
正在加载…
在新工单中引用