Skip to content
Browse files

added formatNumber and formatCurrency

  • Loading branch information...
1 parent 6fc51f3 commit 866c7c69dca4b2bdab34613bdda46c6b08ae737f @jarnix committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/php/classes/Nf/Localization.php
View
4 library/php/classes/Nf/Localization.php
@@ -58,13 +58,13 @@ public static function formatMonth($timestamp, $fullName=true) {
public static function formatCurrency($amount, $currency) {
$instance=self::$_instance;
- $fmt = new NumberFormatter($instance->_currentLocale(), NumberFormatter::CURRENCY);
+ $fmt = new NumberFormatter($instance->_currentLocale, NumberFormatter::CURRENCY);
return $fmt->formatCurrency($amount, $currency);
}
public static function formatNumber($value) {
$instance=self::$_instance;
- $fmt = new NumberFormatter($instance->_currentLocale(), NumberFormatter::DECIMAL);
+ $fmt = new NumberFormatter($instance->_currentLocale, NumberFormatter::DECIMAL);
return $fmt->format($value);
}

0 comments on commit 866c7c6

Please sign in to comment.
Something went wrong with that request. Please try again.