mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Centralize language loading with English fallback (#361)
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
include_once($configFile);
|
||||
include_once("../../GameEngine/Database.php");
|
||||
include_once("../../GameEngine/Admin/database.php");
|
||||
include_once("../../GameEngine/Lang/" . LANG . ".php");
|
||||
require_once dirname(__DIR__, 2) . "/GameEngine/Lang/loader.php";
|
||||
tz_load_language(LANG);
|
||||
|
||||
// update Admin details first
|
||||
$gameConfig = file_get_contents($configFile);
|
||||
@@ -113,4 +114,4 @@
|
||||
$gameinstall = 0;
|
||||
header("Location: ../index.php?s=5");
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user