fixing some more bugs introduced from the new i18n system
This commit is contained in:
parent
078a5ca108
commit
e531d8d5b2
3 changed files with 7 additions and 9 deletions
|
|
@ -67,9 +67,9 @@ my $langs = {
|
|||
16 => "Polish",
|
||||
21 => "Russian"
|
||||
};
|
||||
WebGUI::SQL->write("update userProfileField set dataDefault='[\'".$langs->{$defaultLangId}."\']' where fieldName='language'");
|
||||
WebGUI::SQL->write("update userProfileData set language='".$langs->{$defaultLangId}."' where fieldName='language' and fieldData<>1");
|
||||
WebGUI::SQL->write("update userProfileData set language='English' where fieldName='language' and fieldData=1");
|
||||
WebGUI::SQL->write("update userProfileField set dataDefault=".quote("['".$langs->{$defaultLangId}."']")." where fieldName='language'");
|
||||
WebGUI::SQL->write("update userProfileData set fieldData='".$langs->{$defaultLangId}."' where fieldName='language' and fieldData<>1");
|
||||
WebGUI::SQL->write("update userProfileData set fieldData='English' where fieldName='language' and fieldData=1");
|
||||
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue