Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix for issue #123
James Cole791d12fbb4e2
diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.phpindex 8b196c51c8..a785f908c9 100644--- a/app/Http/Middleware/Authenticate.php+++ b/app/Http/Middleware/Authenticate.php@@ -64,6 +64,7 @@ class AuthenticateCarbon::setLocale($pref->data);setlocale(LC_TIME, Config::get('firefly.locales.' . $pref->data));+ setlocale(LC_MONETARY, Config::get('firefly.locales.' . $pref->data));return $next($request);}diff --git a/app/Support/Amount.php b/app/Support/Amount.phpindex 0ef9c0ad2c..4e8f03a460 100644--- a/app/Support/Amount.php+++ b/app/Support/Amount.php@@ -60,7 +60,7 @@ class Amount{$amount = floatval($amount);$amount = round($amount, 2);- $string = number_format($amount, 2, ',', '.');+ $string = money_format('%!.2n', $amount);if ($coloured === true) {if ($amount === 0.0) {