diff options
author | Nils Adermann <naderman@naderman.de> | 2007-03-13 22:00:55 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2007-03-13 22:00:55 +0000 |
commit | ce8b00801edabd8de8b88891d6997309e7ca0459 (patch) | |
tree | 65788f228055ca6d8b50242ee6f94ff914de70d4 /phpBB/install/install_update.php | |
parent | 5e06885ea4acd2dbe0c05fdb3db61577b79669d1 (diff) | |
download | forums-ce8b00801edabd8de8b88891d6997309e7ca0459.tar forums-ce8b00801edabd8de8b88891d6997309e7ca0459.tar.gz forums-ce8b00801edabd8de8b88891d6997309e7ca0459.tar.bz2 forums-ce8b00801edabd8de8b88891d6997309e7ca0459.tar.xz forums-ce8b00801edabd8de8b88891d6997309e7ca0459.zip |
- improvements to search indexing performance, espacially tidy() by adding a word_count column, the database update from b5 to next version will take quite a while on bigger databases, I also lowered the default common word threshold from 20 to 5 percent, big boards might want to use 3 or 2 percent, 20 was way too high
- added some keys to ACL tables, great improvement of auth query performance
- we will only add new language strings to install.php language file and won't modify any, if a language file is updated before phpBB is updated, the updater will not overwrite the user's language with english if install.php was modified
git-svn-id: file:///svn/phpbb/trunk@7182 89ea8834-ac86-4346-8a33-228a782c2dd0
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]; + } } } |