[-] BO : fixed image import with allow_url_fopen deactivated #PSCFV-8181
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user