From c15a2e092043303fc99080fe8bb4f33475ec4812 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 16 Feb 2009 23:09:51 +0000 Subject: [PATCH] Bug in function get_ecb_rate when no function curl_init (missing url part) --- CHANGELOG.txt | 2 ++ gl/includes/db/gl_db_rates.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d05ec83c..fdaa0c9f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,8 @@ $ -> Affected files 16-Feb-2009 Joe Hunt # Instruction in update.html should include switch to standard theme before upgrade $ update.html +# Bug in function get_ecb_rate when no function curl_init (missing url part) +$ /gl/includes/db/gl_db_rates.inc ------------------------------- Release 2.1.0 beta 2 ------------------------------------------- 15-Feb-2009 Joe Hunt diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index 1355e1b7..0c9ae686 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -97,7 +97,7 @@ function get_ecb_rate($curr_b) } while( ($contents == '') && $retry--); } else { - $handle = @fopen($ecb_filename, 'rb'); + $handle = @fopen("http://".$ecb_site.$ecb_filename, 'rb'); if ($handle) { do { -- 2.30.2