Added VARLIB_PATH and VARLOG_PATH defines to simplify packaging.
[fa-stable.git] / gl / includes / db / gl_db_rates.inc
index 46e0aa0289f7d0d5aa9958462936354872da2e77..98791b7c10fa497b8d2ecf4a38dfadad9aac8849 100644 (file)
@@ -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)