core/helpers/EEH_Template.helper.php 1 location
|
@@ 463-466 (lines=4) @@
|
460 |
|
// was a country ISO code passed ? if so generate currency config object for that country |
461 |
|
$mny = $CNT_ISO !== '' ? new EE_Currency_Config($CNT_ISO) : null; |
462 |
|
// verify results |
463 |
|
if ( ! $mny instanceof EE_Currency_Config) { |
464 |
|
// set default config country currency settings |
465 |
|
$mny = EE_Registry::instance()->CFG->currency instanceof EE_Currency_Config |
466 |
|
? EE_Registry::instance()->CFG->currency |
467 |
|
: new EE_Currency_Config(); |
468 |
|
} |
469 |
|
// format float |
core/helpers/EEH_Money.helper.php 1 location
|
@@ 223-225 (lines=3) @@
|
220 |
|
? new EE_Currency_Config($CNT_ISO) |
221 |
|
: null; |
222 |
|
//default currency settings for site if not set |
223 |
|
if (! $currency_config instanceof EE_Currency_Config) { |
224 |
|
$currency_config = EE_Registry::instance()->CFG->currency instanceof EE_Currency_Config |
225 |
|
? EE_Registry::instance()->CFG->currency |
226 |
|
: new EE_Currency_Config(); |
227 |
|
} |
228 |
|
return $currency_config; |