Fix: get list of currencies
This commit is contained in:
parent
c42a0c5b03
commit
0743049dc4
@ -3005,14 +3005,14 @@ class Form
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
|
|
||||||
$langs->load_cache_currencies();
|
$langs->load_cache_currencies('');
|
||||||
|
|
||||||
$out='';
|
$out='';
|
||||||
|
|
||||||
if ($selected=='euro' || $selected=='euros') $selected='EUR'; // Pour compatibilite
|
if ($selected=='euro' || $selected=='euros') $selected='EUR'; // Pour compatibilite
|
||||||
|
|
||||||
$out.= '<select class="flat" name="'.$htmlname.'">';
|
$out.= '<select class="flat" name="'.$htmlname.'">';
|
||||||
foreach ($this->cache_currencies as $code_iso => $currency)
|
foreach ($langs->cache_currencies as $code_iso => $currency)
|
||||||
{
|
{
|
||||||
if ($selected && $selected == $code_iso)
|
if ($selected && $selected == $code_iso)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user