mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-14 20:37:00 +01:00
Load English first, then merge lang ontop
It's English ontop of English for now, but 2nd include can be changed in the code here and soon to be set via the UI.
This commit is contained in:
@@ -40,7 +40,12 @@ If ($ICEcoderUserSettings["versionNo"] != $ICEcoderSettings["versionNo"]) {
|
||||
$ICEcoder = $ICEcoderSettings + $ICEcoderUserSettings;
|
||||
|
||||
// Include language file
|
||||
// Load English first as foundation
|
||||
include(dirname(__FILE__)."/../lang/english.php");
|
||||
$englishText = $text;
|
||||
// Load chosen language ontop to replace English
|
||||
include(dirname(__FILE__)."/../lang/english.php");
|
||||
$text = array_merge($englishText, $text);
|
||||
$_SESSION['text'] = $text;
|
||||
|
||||
// Login not required or we're in demo mode and have password set in our settings, log us straight in
|
||||
|
||||
Reference in New Issue
Block a user