summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php
diff options
context:
space:
mode:
authorwei <>2007-01-24 05:52:22 +0000
committerwei <>2007-01-24 05:52:22 +0000
commite306989c6d03aac37e2557465b4812ea21970065 (patch)
tree7e2524a33cedf49831eb3c5ae15cd1bed3c3ab2c /demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php
parentdec4042d10caa5a54b753fab950f16218fa62d8d (diff)
Fixed #517, #519, #521
Diffstat (limited to 'demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php')
-rw-r--r--demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php5
1 files changed, 3 insertions, 2 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..f0d127b9 100644
--- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php
+++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php
@@ -1,4 +1,4 @@
-<?php
+<?php
class Home extends TPage
{
@@ -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);
}