summaryrefslogtreecommitdiff
path: root/framework/I18N/TNumberFormat.php
diff options
context:
space:
mode:
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,