mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
This should fix all twig tests. Let's find out!
This commit is contained in:
@@ -160,12 +160,15 @@ class Amount
|
||||
|
||||
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
||||
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
||||
if ($currency) {
|
||||
|
||||
\Cache::forever('FFCURRENCYCODE', $currency->code);
|
||||
Cache::forever('FFCURRENCYCODE', $currency->code);
|
||||
define('FFCURRENCYCODE', $currency->code);
|
||||
|
||||
define('FFCURRENCYCODE', $currency->code);
|
||||
return $currency->code;
|
||||
}
|
||||
|
||||
return $currency->code;
|
||||
return 'EUR';
|
||||
}
|
||||
|
||||
public function getDefaultCurrency()
|
||||
|
Reference in New Issue
Block a user