Fixed a bug in the display of the current currency code.

This commit is contained in:
James Cole 2015-05-03 16:16:43 +02:00
parent e26d08d674
commit 4660cf2ad5

View File

@ -151,14 +151,10 @@ class Amount
if (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) {