Merge pull request #1259 from AndreasK79/installer_directory_fix

[Installer] Directory fix
pull/1262/head
Andreas Kristiansen 2021-10-31 17:19:21 +01:00 zatwierdzone przez GitHub
commit 1242fde5c1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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);