This commit is contained in:
2025-11-25 20:57:53 +01:00
parent c17ddbe39b
commit 9d1e44d952

View File

@@ -1,5 +1,6 @@
<?php
require_once __DIR__ . "/../config.php";
// -----------------------------------------------------------
// Session starten
// -----------------------------------------------------------
@@ -21,10 +22,6 @@ if (php_sapi_name() !== 'cli') {
}
}
require_once __DIR__ . "/../config.php";
require_once __DIR__ . "/../db.php";
require_once __DIR__ . '/../src/functions.php';
// -----------------------------------------------------------
// 1) Sprache bestimmen (vor dem Laden der JSON-Dateien!)
// -----------------------------------------------------------
@@ -64,8 +61,6 @@ foreach ($langFiles as $file) {
];
}
print_r($availableLangs);
// Falls keine Sprachdateien gefunden wurden → Minimal-Fallback
if (empty($availableLangs)) {
$availableLangs = [
@@ -125,3 +120,5 @@ $GLOBALS['i18n'] = [
// 6) Rest des Systems laden
// -----------------------------------------------------------
require_once __DIR__ . "/../db.php";
require_once __DIR__ . '/../src/functions.php';