Updated google url for currency converter.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 24 May 2018 13:17:12 +0000 (15:17 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 24 May 2018 13:17:12 +0000 (15:17 +0200)
gl/includes/db/gl_db_rates.inc

index 98791b7c10fa497b8d2ecf4a38dfadad9aac8849..b70822974f9bdc1d3d7124f15e118b2907477645 100644 (file)
@@ -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, '<span class=bld>', ' ');
                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, '<span class=bld>', ' ');
                } else {