From 2983057ad91ccdef1fef86a85fe8e888350c3384 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Apr 2006 14:43:51 +0000 Subject: Fixed a few issues with using Globalization. --- framework/Web/UI/TTemplateManager.php | 2 +- framework/Web/UI/WebControls/TDatePicker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index dd3f7af8..71b53e19 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -100,7 +100,7 @@ class TTemplateManager extends TModule */ protected function getLocalizedTemplate($filename) { - if(($app=$this->getApplication()->getGlobalization())===null) + if(($app=$this->getApplication()->getGlobalization(false))===null) return $filename; foreach($app->getLocalizedResource($filename) as $file) { diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 9bb352d6..c6a2345b 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -406,7 +406,7 @@ class TDatePicker extends TTextBox */ protected function getCurrentCulture() { - $app = $this->getApplication()->getGlobalization(); + $app = $this->getApplication()->getGlobalization(false); return $this->getCulture() == '' ? ($app ? $app->getCulture() : 'en') : $this->getCulture(); } -- cgit v1.2.3