fixed some i18n problems and moved http related functions out of session and into their own class
This commit is contained in:
parent
e531d8d5b2
commit
f18f408efb
21 changed files with 444 additions and 211 deletions
|
|
@ -70,7 +70,10 @@ my $langs = {
|
|||
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::SQL->write("alter table page change languageId languageId varchar(50) not null default 'English'");
|
||||
foreach my $key (keys %{$langs}) {
|
||||
WebGUI::SQL->write("update page set languageId=".quote($langs->{$key})." where languageId=".$key);
|
||||
}
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue