X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fincludes%2Fdb%2Fgl_db_rates.inc;h=98791b7c10fa497b8d2ecf4a38dfadad9aac8849;hb=4a37a28c49bf900dcc370fd3f21186cedcd632c9;hp=46e0aa0289f7d0d5aa9958462936354872da2e77;hpb=c9770b49bbfa0a5c85cc0a8a9622dbd3f55c5353;p=fa-stable.git diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index 46e0aa02..98791b7c 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -167,7 +167,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) do { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $proto.$site.$filename); - curl_setopt ($ch, CURLOPT_COOKIEJAR, "$path_to_root/tmp/cookie.txt"); + curl_setopt ($ch, CURLOPT_COOKIEJAR, VARLIB_PATH."/cookie.txt"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); // prevent warning while safe_mode/open_basedir on (redirection doesn't occur at least on ECB page)