From 250c8e554ee24392d3b746552ef96a44417ef91e Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 31 Oct 2021 17:18:42 +0100 Subject: [PATCH] [Installer] Directory fix --- install/includes/core_class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/includes/core_class.php b/install/includes/core_class.php index 51f5d733..37604e26 100644 --- a/install/includes/core_class.php +++ b/install/includes/core_class.php @@ -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);