From d39276a5c8495014b0716c81c432fa9a86ffc138 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 24 May 2018 15:17:12 +0200 Subject: [PATCH 1/1] Updated google url for currency converter. --- gl/includes/db/gl_db_rates.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index 98791b7c..b7082297 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -150,7 +150,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) } elseif ($provider == 'GOOGLE') { - $filename = "/finance/converter?a=1&from={$curr_a}&to={$curr_b}"; + $filename = "/bctzjpnsun/converter?a=1&from={$curr_a}&to={$curr_b}";; $site = "finance.google.com"; } elseif ($provider == 'BLOOMBERG') @@ -218,7 +218,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) $val = getInnerStr($contents, '', ' '); if (empty($val) || $val+0 <= 0.0001) { // reverse lookup on could not convert for too small values - $filename = "/finance/converter?a=1&from={$curr_b}&to={$curr_a}"; + $filename = "/bctzjpnsun/converter?a=1&from={$curr_b}&to={$curr_a}"; $contents = url_get_contents($proto.$site.$filename); $val = getInnerStr($contents, '', ' '); } else { -- 2.30.2