mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-09 10:06:46 +01:00
Need to use array_replace_recursive()
This is the function needed to overwrite $text array ontop of $englishText, including nested arrays
This commit is contained in:
@@ -45,7 +45,7 @@ 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);
|
||||
$text = array_replace_recursive ($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