//small fix

This commit is contained in:
vAugagneur committed 2012-08-06 12:40:55 +00:00
1 parent 51a3578325
commit 356675c747
2 files changed
+2 -2

No files matched your search

+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 * Delete the product image from disk and remove the containing folder if empty
* Handles both legacy and new image filesystems * Handles both legacy and new image filesystems
*/ */
public function deleteImage() public function deleteImage($force_delete = false)
{ {
if (!$this->id) if (!$this->id)
return false; return false;
+1 -1
View File
@@ -116,7 +116,7 @@ class SceneCore extends ObjectModel
return false; 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 // 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']))) if (isset($_FILES['thumb']) && (!isset($_FILES['image']) || empty($_FILES['image']['name'])))