From e326bab1cc979cadb01ef3e3c213838e046a42d7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 31 Jan 2006 00:49:48 +0000 Subject: make I18n demo work with PHP 5.0.4 --- demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 9f4c7c4e..6966a4cd 100644 --- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php +++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php @@ -10,7 +10,7 @@ class Home extends TPage parent::__construct(); $lang = $this->Request['lang']; if(CultureInfo::validCulture($lang)) //only valid lang is permitted - $this->Application->Globalization->Culture = $lang; + $this->getApplication()->getGlobalization()->setCulture($lang); } /** -- cgit v1.2.3