summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorwei <>2007-01-24 06:20:33 +0000
committerwei <>2007-01-24 06:20:33 +0000
commitd4d2da50c846c8b60f9b141d9f712d54f287e44b (patch)
treec21fafb34622db16f40904fd827ef03b1ecb1ab9 /demos
parent69e7bf1c66b645a99f1b4dd73863244d28b9c5b8 (diff)
Fixed #505, #508
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php3
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);
}