From a209b6ab5ba30b024af681a56e1e720d9d6c2e78 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 30 Jan 2024 11:18:58 +0100 Subject: [PATCH] directory path --- application/config/database.sample.php | 2 +- install/includes/core_class.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/config/database.sample.php b/application/config/database.sample.php index 630d68485..29626bdab 100644 --- a/application/config/database.sample.php +++ b/application/config/database.sample.php @@ -88,7 +88,7 @@ $db['default'] = array( 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8mb4', - 'dbcollat' => 'utf8mb4_0900_ai_ci', + 'dbcollat' => 'utf8mb4_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, diff --git a/install/includes/core_class.php b/install/includes/core_class.php index 8b479b36e..355537ae6 100644 --- a/install/includes/core_class.php +++ b/install/includes/core_class.php @@ -27,7 +27,7 @@ class Core } if ($data['directory'] != "") { - if (file_exists($_SERVER['DOCUMENT_ROOT'] . $data['directory'])) { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'])) { //pass folders real $counter++; } else { @@ -112,7 +112,7 @@ class Core // Config path $template_path = 'config/database.php'; - $output_path = $_SERVER['DOCUMENT_ROOT'] . $data['directory'] . '/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); @@ -148,7 +148,7 @@ class Core // Config path $template_path = 'config/config.php'; - $output_path = $_SERVER['DOCUMENT_ROOT'] . $data['directory'] . '/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);