mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed a bug in the display of the current currency code.
This commit is contained in:
parent
e26d08d674
commit
4660cf2ad5
@ -151,14 +151,10 @@ class Amount
|
|||||||
if (defined('FFCURRENCYCODE')) {
|
if (defined('FFCURRENCYCODE')) {
|
||||||
return FFCURRENCYCODE;
|
return FFCURRENCYCODE;
|
||||||
}
|
}
|
||||||
if (Cache::has('FFCURRENCYCODE')) {
|
|
||||||
define('FFCURRENCYCODE', Cache::get('FFCURRENCYCODE'));
|
|
||||||
|
|
||||||
return FFCURRENCYCODE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
||||||
|
|
||||||
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
||||||
if ($currency) {
|
if ($currency) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user