[-] BO : fixed bug #PSCFI-1429 - Deleting products does not remove image files
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@5913 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -472,7 +472,7 @@ abstract class AdminTabCore
|
||||
{
|
||||
$dir = null;
|
||||
/* Deleting object images and thumbnails (cache) */
|
||||
if (key_exists('dir', $this->fieldImageSettings) AND $this->fieldImageSettings['dir'].'/')
|
||||
if (key_exists('dir', $this->fieldImageSettings))
|
||||
{
|
||||
$dir = $this->fieldImageSettings['dir'].'/';
|
||||
if (file_exists(_PS_IMG_DIR_.$dir.$id.'.'.$this->imageType) AND !unlink(_PS_IMG_DIR_.$dir.$id.'.'.$this->imageType))
|
||||
|
||||
Reference in New Issue
Block a user