Centralize language loading with English fallback (#361)

This commit is contained in:
Fabian
2026-07-31 06:12:33 +01:00
committed by GitHub
parent 4f9bc3c37c
commit a1a714b062
19 changed files with 260 additions and 40 deletions
+3 -2
View File
@@ -21,7 +21,8 @@
#################################################################################
include_once("config.php");
include_once("Lang/" . LANG . ".php");
require_once __DIR__ . "/Lang/loader.php";
tz_load_language(LANG);
/**
* Ensure input exists (avoid undefined variable issues)
@@ -207,4 +208,4 @@ $bbcoded = preg_replace_callback(
$bbcoded = preg_replace('/\[message\]/', '', $bbcoded);
$bbcoded = preg_replace('/\[\/message\]/', '', $bbcoded);
?>
?>