diff options
author | wei <> | 2007-01-24 06:20:33 +0000 |
---|---|---|
committer | wei <> | 2007-01-24 06:20:33 +0000 |
commit | d4d2da50c846c8b60f9b141d9f712d54f287e44b (patch) | |
tree | c21fafb34622db16f40904fd827ef03b1ecb1ab9 /demos | |
parent | 69e7bf1c66b645a99f1b4dd73863244d28b9c5b8 (diff) |
Fixed #505, #508
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php index d9a261d6..cce1ed4e 100644 --- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php +++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php @@ -9,7 +9,8 @@ class Home extends TPage {
parent::__construct();
$lang = $this->Request['lang'];
- if(CultureInfo::validCulture($lang)) //only valid lang is permitted
+ $info = new CultureInfo();
+ if($info->validCulture($lang)) //only valid lang is permitted
$this->getApplication()->getGlobalization()->setCulture($lang);
}
|