[Installer] Directory fix

这个提交包含在:
Andreas 2021-10-31 17:18:42 +01:00
父节点 2bf5894744
当前提交 250c8e554e

查看文件

@ -26,7 +26,7 @@ class Core {
} }
if($data['directory'] != "") { if($data['directory'] != "") {
if (file_exists("../".$data['directory'])) { if (file_exists($_SERVER['DOCUMENT_ROOT'].$data['directory'])) {
//pass folders real //pass folders real
$counter++; $counter++;
} else { } else {
@ -56,7 +56,7 @@ class Core {
// Config path // Config path
$template_path = 'config/database.php'; $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 // Open the file
$database_file = file_get_contents($template_path); $database_file = file_get_contents($template_path);
@ -92,7 +92,7 @@ class Core {
// Config path // Config path
$template_path = 'config/config.php'; $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 // Open the file
$database_file = file_get_contents($template_path); $database_file = file_get_contents($template_path);