layout
This commit is contained in:
@@ -32,6 +32,8 @@ $domainFile = __DIR__ . '/domaindata.php';
|
||||
$settingsFile = __DIR__ . '/settings.php';
|
||||
$configFile = __DIR__ . '/db.php';
|
||||
$baseConfigFile = __DIR__ . '/base_db.php';
|
||||
$fallbackBaseConfig = __DIR__ . '/staging/db_settings_basic.php';
|
||||
$fallbackBaseConfigProd = __DIR__ . '/prod/db_settings_basic.php';
|
||||
|
||||
if (file_exists($domainFile)) {
|
||||
require_once $domainFile;
|
||||
@@ -51,6 +53,12 @@ $baseDbConfig = [];
|
||||
if (file_exists($baseConfigFile)) {
|
||||
$baseDbConfig = require $baseConfigFile;
|
||||
}
|
||||
if (empty($baseDbConfig) && file_exists($fallbackBaseConfig)) {
|
||||
$baseDbConfig = require $fallbackBaseConfig;
|
||||
}
|
||||
if (empty($baseDbConfig) && file_exists($fallbackBaseConfigProd)) {
|
||||
$baseDbConfig = require $fallbackBaseConfigProd;
|
||||
}
|
||||
|
||||
// Globales Config Objekt erstellen
|
||||
global $appConfig;
|
||||
|
||||
Reference in New Issue
Block a user