//small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16719 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-08-06 12:40:55 +00:00
parent 9039939c7d
commit 4815e5d2f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ class ImageCore extends ObjectModel
* Delete the product image from disk and remove the containing folder if empty
* Handles both legacy and new image filesystems
*/
public function deleteImage()
public function deleteImage($force_delete = false)
{
if (!$this->id)
return false;
+1 -1
View File
@@ -116,7 +116,7 @@ class SceneCore extends ObjectModel
return false;
}
public function deleteImage()
public function deleteImage($force_delete = false)
{
// Hack to prevent the main scene image from being deleted in AdminController::uploadImage() when a thumb image is uploaded
if (isset($_FILES['thumb']) && (!isset($_FILES['image']) || empty($_FILES['image']['name'])))