From: Joe Hunt Date: Mon, 16 Feb 2009 23:09:51 +0000 (+0000) Subject: Bug in function get_ecb_rate when no function curl_init (missing url part) X-Git-Tag: v2.4.2~19^2~1524 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c15a2e092043303fc99080fe8bb4f33475ec4812;p=fa-stable.git Bug in function get_ecb_rate when no function curl_init (missing url part) --- 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 {