From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/QuickStartGlobalization.php | 60 +++++++++++----------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'demos/quickstart/protected/QuickStartGlobalization.php') diff --git a/demos/quickstart/protected/QuickStartGlobalization.php b/demos/quickstart/protected/QuickStartGlobalization.php index 6a0b0fb2..8fc42e8d 100644 --- a/demos/quickstart/protected/QuickStartGlobalization.php +++ b/demos/quickstart/protected/QuickStartGlobalization.php @@ -1,31 +1,31 @@ -Application->OnBeginRequest[] = array($this, 'beginRequest'); - } - - public function beginRequest($sender, $param) - { - if(null == ($culture=$this->Request['lang'])) - { - if(null !== ($cookie=$this->Request->Cookies['lang'])) - $culture = $cookie->getValue(); - } - - if(is_string($culture)) - { - $info = new CultureInfo(); - if($info->validCulture($culture)) - { - $this->setCulture($culture); - $this->Response->Cookies[] = new THttpCookie('lang',$culture); - } - } - } -} - +Application->OnBeginRequest[] = array($this, 'beginRequest'); + } + + public function beginRequest($sender, $param) + { + if(null == ($culture=$this->Request['lang'])) + { + if(null !== ($cookie=$this->Request->Cookies['lang'])) + $culture = $cookie->getValue(); + } + + if(is_string($culture)) + { + $info = new CultureInfo(); + if($info->validCulture($culture)) + { + $this->setCulture($culture); + $this->Response->Cookies[] = new THttpCookie('lang',$culture); + } + } + } +} + ?> \ No newline at end of file -- cgit v1.2.3