[-] BO : Fix bugPSCFV-10249 images copy when unix path

This commit is contained in:
gRoussac
2013-09-16 17:16:11 +02:00
parent 8504574ae1
commit 15dd1cf96f
+6 -1
View File
@@ -1412,7 +1412,12 @@ class ToolsCore
$stream_context = @stream_context_create(array('http' => array('timeout' => 10)));
if (in_array(@ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $source))
return @copy($source, $destination, $stream_context);
{
if (!is_null($stream_context))
return @copy($source, $destination, $stream_context);
else
return @copy($source, $destination);
}
elseif (function_exists('curl_init'))
{
$curl = curl_init();