From 9176dadfd69c15d9f16581d119569a7745c53067 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 29 Apr 2009 00:29:53 +0000 Subject: Move the module::event("before_item_delete") into the Item_Model::delete method. This will insure that it will get called for all events. Currently it is not being called for children of an album when the parent album is deleted. --- core/models/item.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/models') 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(); -- cgit v1.2.3