// cURL could'nt be used #PSCFV-3814

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17068 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-29 12:13:48 +00:00
parent da841a720b
commit c8a3a63d49
+1 -1
View File
@@ -1247,7 +1247,7 @@ class ToolsCore
if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')))
return @file_get_contents($url, $use_include_path, $stream_context);
elseif (function_exists('curl_init') && in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')))
elseif (function_exists('curl_init'))
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);