0001792: BLOOMBERG added to Exchange Rate Providers and config fix.
[fa-stable.git] / gl / manage / exchange_rates.php
index 90ab428f37db35a37d4d6eb6403c8791804f975c..49e924f6b41d0841d0d30239a3c9a21aaa531ebe 100644 (file)
@@ -108,8 +108,8 @@ function display_rates($curr_code)
 
 function display_rate_edit()
 {
-       global $selected_id, $Ajax;
-
+       global $selected_id, $Ajax, $xr_providers, $dflt_xr_provider;
+       $xchg_rate_provider = ((isset($xr_providers) && isset($dflt_xr_provider)) ? $xr_providers[$dflt_xr_provider] : 'ECB');
        start_table(TABLESTYLE2);
 
        if ($selected_id != "")
@@ -139,7 +139,7 @@ function display_rate_edit()
                $Ajax->activate('BuyRate');
        }
        amount_row(_("Exchange Rate:"), 'BuyRate', null, '',
-               submit('get_rate',_("Get"), false, _('Get current ECB rate') , true), 'max');
+               submit('get_rate',_("Get"), false, _('Get current rate from') . ' ' . $xchg_rate_provider , true), 'max');
 
        end_table(1);