From: Joe Hunt Date: Thu, 24 May 2018 13:17:12 +0000 (+0200) Subject: Updated google url for currency converter. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d39276a5c8495014b0716c81c432fa9a86ffc138;hp=37ce2eba59b4f5ca59540bcb45431471538670e4;p=fa-stable.git Updated google url for currency converter. --- 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 {