From e306989c6d03aac37e2557465b4812ea21970065 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 24 Jan 2007 05:52:22 +0000 Subject: Fixed #517, #519, #521 --- demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php | 5 +++-- demos/quickstart/protected/pages/Advanced/Samples/I18N/config.xml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'demos/quickstart/protected/pages/Advanced/Samples') 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 @@ -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); } diff --git a/demos/quickstart/protected/pages/Advanced/Samples/I18N/config.xml b/demos/quickstart/protected/pages/Advanced/Samples/I18N/config.xml index e6fa03ec..5c80f48b 100644 --- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/config.xml +++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/config.xml @@ -1,4 +1,4 @@ - + @@ -8,7 +8,7 @@ - + -- cgit v1.2.3