Skip to content

Commit

Permalink
Exchange Rate retrieval file updated for GOOGLE provider URL
Browse files Browse the repository at this point in the history
Upstream fixes backported with IP for GOOGLE commented out
http://frontaccounting.com/punbb/viewtopic.php?id=7072
  • Loading branch information
apmuthu committed Oct 26, 2017
1 parent e120caa commit 39889ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions FAMods/CHANGELOG_apmuthu.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2017-10-14 Ap.Muthu Exchange Rate retrieval file updated for GOOGLE provider URL
2017-10-14 Ap.Muthu Exchange Rate retrieval file tidied to match FA 2.4 counterpart
2017-10-02 Ap.Muthu Clear loader.gif on successful backup
2017-10-01 Ap.Muthu Fixed user config values unavailable error generated before user login
Expand Down
6 changes: 3 additions & 3 deletions FAMods/gl/includes/db/gl_db_rates.inc
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date)
elseif ($provider == 'GOOGLE')
{
$filename = "/finance/converter?a=1&from={$curr_a}&to={$curr_b}";
$site = "www.google.com";
$site_ip = "74.125.23.147"; // https://ipinfo.io/AS15169
$site = "finance.google.com";
// $site_ip = "172.217.26.206"; // https://ipinfo.io/AS15169
}
elseif ($provider == 'BLOOMBERG')
{
Expand All @@ -176,7 +176,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date)
curl_close($ch);
// due to resolver bug in some curl versions (e.g. 7.15.5)
// try again for constant IP.
// if (isset($site_ip))
if (isset($site_ip))
$site=$site_ip;
} while( ($contents == '') && $retry--);

Expand Down

0 comments on commit 39889ee

Please sign in to comment.