GX-Bug #58890 » CurrencyUpdateFix1.patch
| src/admin/includes/functions/localization.php (date 1535722985000) | ||
|---|---|---|
| 33 | 33 |
function getCurrentRate($to, $base = DEFAULT_CURRENCY) |
| 34 | 34 |
{
|
| 35 | 35 |
// Currency converter. https://exchangeratesapi.io/ |
| 36 |
$exchangeRatesApi = 'https://exchangeratesapi.io/api/latest?base=' . $base;
|
|
| 36 |
$exchangeRatesApi = 'https://api.exchangeratesapi.io/latest?base=' . $base;
|
|
| 37 | 37 |
|
| 38 | 38 |
$ch = curl_init(); |
| 39 | 39 |
curl_setopt($ch, CURLOPT_URL, $exchangeRatesApi); |