diff --git a/GameEngine/Admin/Mods/editServerSet.php b/GameEngine/Admin/Mods/editServerSet.php index b60249df..901921de 100755 --- a/GameEngine/Admin/Mods/editServerSet.php +++ b/GameEngine/Admin/Mods/editServerSet.php @@ -67,7 +67,7 @@ $fh = fopen($myFile, 'w') or die("


Can't open file: GameEngine\con $text = preg_replace("'%STARTTIME%'", COMMENCE, $text); $text = preg_replace("'%SSTARTDATE%'", START_DATE, $text); $text = preg_replace("'%SSTARTTIME%'", START_TIME, $text); - $text = preg_replace("'%LANG%'", $_POST['lang'], $text); + $text = preg_replace("'%LANG%'", (defined('SERVER_LANG') ? SERVER_LANG : LANG), $text); $text = preg_replace("'%SPEED%'", $_POST['speed'], $text); $text = preg_replace("'%MAX%'", WORLD_MAX, $text); $text = preg_replace("'%GP%'", $_POST['gpack'], $text);