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

This commit is contained in:
Damien Metzger
2013-04-29 17:11:17 +02:00
parent d2d4b68f7c
commit 3600a31862
2 changed files with 24 additions and 3 deletions
+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);