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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17488 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-09-24 09:08:57 +00:00
parent 352a1f636c
commit 3f1cb8d093
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