From 39fd3d9021822be41df749029337183ba560a7f3 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Tue, 5 Mar 2002 14:15:39 +0000 Subject: [PATCH] Rename 'nederlands' to 'dutch' during upgrade git-svn-id: file:///svn/phpbb/trunk@2271 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/upgrade.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php index 7474a42959..347d184f70 100644 --- a/phpBB/upgrade.php +++ b/phpBB/upgrade.php @@ -571,6 +571,11 @@ if ( !empty($next) ) } } + $sql = "UPDATE " . CONFIG_TABLE . " + SET config_value = 'dutch' + WHERE config_name = 'default_lang' && config_value = 'nederlands'"; + query($sql, "Couldn't rename 'nederlands' to 'dutch' in config table"); + print "OK
\n"; end_step('convert_ips'); @@ -898,6 +903,14 @@ if ( !empty($next) ) $first_admin = $row['user_id']; } + // + // Dutch language files have been renamed from 'nederlands' to 'dutch' + // + if( $row['user_lang'] == 'nederlands' ) + { + $row['user_lang'] = 'dutch'; + } + $sql = "UPDATE " . USERS_TABLE . " SET user_sig = '" . $row['user_sig'] . "', @@ -1859,4 +1872,4 @@ print "
If the upgrade completed without error you may click \ No newline at end of file +?>