summaryrefslogtreecommitdiff
path: root/framework/I18N/TNumberFormat.php
diff options
context:
space:
mode:
authorwei <>2006-01-06 05:16:25 +0000
committerwei <>2006-01-06 05:16:25 +0000
commited3e43d30524a76969fb7d42cb5e613c2e1a1d9a (patch)
tree7f0cd531766635363527715fd4614eb56df0a80c /framework/I18N/TNumberFormat.php
parent4835704a04cf5aa5ec71a8aef902d54b9c6cae82 (diff)
Changing property scopes in TGlobalization
Diffstat (limited to 'framework/I18N/TNumberFormat.php')
-rw-r--r--framework/I18N/TNumberFormat.php4
1 files changed, 2 insertions, 2 deletions
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,