Polyfill added for array_replace_recursive

This is natively available in PHP 5.3+
This commit is contained in:
Matt Pass
2014-10-24 09:23:52 +01:00
parent 084269bf35
commit 9ea459787e
2 changed files with 31 additions and 1 deletions

View File

@@ -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_replace_recursive ($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