diff options
Diffstat (limited to 'phpBB/install/install_update.php')
-rw-r--r-- | phpBB/install/install_update.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index 7b9020371c..125c5c3fd5 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -202,7 +202,12 @@ class install_update extends module { $lang = array(); include($this->new_location . 'language/en/install.php'); - $user->lang = array_merge($user->lang, $lang); + // only add new keys to user's language in english + $new_keys = array_diff(array_keys($lang), array_keys($user->lang)); + foreach ($new_keys as $i => $new_key) + { + $user->lang[$new_key] = $lang[$new_key]; + } } } |