Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed a bug in the display of the current currency code.
James Cole4660cf2ad510
diff --git a/app/Support/Amount.php b/app/Support/Amount.phpindex db7aecb52c..205db6b61e 100644--- a/app/Support/Amount.php+++ b/app/Support/Amount.php@@ -151,14 +151,10 @@ class Amountif (defined('FFCURRENCYCODE')) {return FFCURRENCYCODE;}- if (Cache::has('FFCURRENCYCODE')) {- define('FFCURRENCYCODE', Cache::get('FFCURRENCYCODE'));-- return FFCURRENCYCODE;- }$currencyPreference = Prefs::get('currencyPreference', 'EUR');+$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();if ($currency) {