summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/controllers/quick.php1
-rw-r--r--core/models/item.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php
index d62f3af0..32febb31 100644
--- a/core/controllers/quick.php
+++ b/core/controllers/quick.php
@@ -120,7 +120,6 @@ class Quick_Controller extends Controller {
$parent->save();
}
- module::event("item_before_delete", $item);
$item->delete();
message::success($msg);
diff --git a/core/models/item.php b/core/models/item.php
index 9292983d..f529a471 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -93,6 +93,8 @@ class Item_Model extends ORM_MPTT {
}
public function delete() {
+ module::event("item_before_delete", $this);
+
$original_path = $this->file_path();
$original_resize_path = $this->resize_path();
$original_thumb_path = $this->thumb_path();