From ed3e43d30524a76969fb7d42cb5e613c2e1a1d9a Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Jan 2006 05:16:25 +0000 Subject: Changing property scopes in TGlobalization --- framework/I18N/TNumberFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/I18N/TNumberFormat.php') diff --git a/framework/I18N/TNumberFormat.php b/framework/I18N/TNumberFormat.php index 712f548b..9f2de233 100644 --- a/framework/I18N/TNumberFormat.php +++ b/framework/I18N/TNumberFormat.php @@ -179,14 +179,14 @@ class TNumberFormat extends TI18NControl $app = $this->Application->getGlobalization(); //initialized the default class wide formatter if(is_null(self::$formatter)) - self::$formatter = new NumberFormat($app->Culture); + self::$formatter = new NumberFormat($app->getCulture()); $pattern = strlen($this->getPattern()) > 0 ? $this->getPattern() : $this->getType(); $culture = $this->getCulture(); //return the specific cultural formatted number - if(!empty($culture) && $app->Culture != $culture) + if(!empty($culture) && $app->getCulture() != $culture) { $formatter = new NumberFormat($culture); return $formatter->format($this->getValue(),$pattern, -- cgit v1.2.3