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
|
|
@ -33,6 +33,9 @@
|
|||
average page, which leads to much greater scalability. See
|
||||
docs/migration.txt for API changes.
|
||||
- Added the ability to select session v. global caches to WSClient.
|
||||
- Rmoved the httpHeader, httpRedirect, and setCookie subs from
|
||||
WebGUI::Session and created a new class called WebGUI::HTTP for them. See
|
||||
docs/migration.txt for details.
|
||||
|
||||
|
||||
6.0.3
|
||||
|
|
|
|||
|
|
@ -140,4 +140,11 @@ gen61i18nfrom60data.pl
|
|||
We also made the International API object oriented. The old procedural version
|
||||
is still intact as well. See WebGUI::International for API changes.
|
||||
|
||||
5.8 WebGUI::Session Changes
|
||||
|
||||
In 6.1 we changed the session API to remove functions that didn't really
|
||||
belong in WebGUI::Session. The main changes of interest are that you no longer
|
||||
do HTTP redirects and set cookies via session. Take a look at WebGUI::HTTP for
|
||||
details.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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