mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
directory path
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user