|
From: Bart v. B. <ba...@us...> - 2002-03-05 14:15:43
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv3964
Modified Files:
upgrade.php
Log Message:
Rename 'nederlands' to 'dutch' during upgrade
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/upgrade.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** upgrade.php 12 Feb 2002 00:52:59 -0000 1.21
--- upgrade.php 5 Mar 2002 14:15:39 -0000 1.22
***************
*** 572,575 ****
--- 572,580 ----
}
+ $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 "<span class=\"ok\"><b>OK</b></span><br />\n";
end_step('convert_ips');
***************
*** 899,902 ****
--- 904,915 ----
}
+ //
+ // Dutch language files have been renamed from 'nederlands' to 'dutch'
+ //
+ if( $row['user_lang'] == 'nederlands' )
+ {
+ $row['user_lang'] = 'dutch';
+ }
+
$sql = "UPDATE " . USERS_TABLE . "
SET
***************
*** 1860,1862 ****
common_footer();
! ?>
\ No newline at end of file
--- 1873,1875 ----
common_footer();
! ?>
|