[-] BO : fixed image import with allow_url_fopen deactivated #PSCFV-8181

This commit is contained in:
Damien Metzger committed 2013-04-29 17:45:45 +02:00
1 parent 88adba8e5b
commit 989b19d94a
2 files changed
+24 -3

No files matched your search

+1 -1
View File
@@ -819,7 +819,7 @@ class AdminImportControllerCore extends AdminController
// 'file_exists' doesn't work on distant file, and getimagesize make the import slower.
// Just hide the warning, the traitment will be the same.
if (@copy($url, $tmpfile))
if (Tools::copy($url, $tmpfile))
{
ImageManager::resize($tmpfile, $path.'.jpg');
$images_types = ImageType::getImagesTypes($entity);