// Changed image system to new default + #PSCFV-4068

This commit is contained in:
dMetzger
2012-09-24 09:08:57 +00:00
parent b7be2d64d4
commit 84b0aa79b2
5 changed files with 19 additions and 33 deletions
+3 -3
View File
@@ -594,9 +594,9 @@ class ImageCore extends ObjectModel
// image exists in DB and with the correct product?
if (Validate::isLoadedObject($image) && $image->id_product == (int)rtrim($matches[1], '-'))
{
// create the new folder if it does not exist
if (!$image->createImgFolder())
return false;
// create the new folder if it does not exist
if (!$image->createImgFolder())
return false;
// if there's already a file at the new image path, move it to a dump folder
// most likely the preexisting image is a demo image not linked to a product and it's ok to replace it