summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-03-03 23:42:02 +0100
committershadlaws <shad@shadlaws.com>2013-03-03 23:42:02 +0100
commit295fadd5704d8e381aef988915ea3e8ea8fd43f6 (patch)
tree73baebc9d3338ac87fab12d9c43f66d4fee99dbe /modules/gallery
parentd213ef3d3f79819571d42c69a75307dc7e19aaa7 (diff)
#2037 - Fix bug with "item_before_update" event in item model.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/models/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index 43b9a292..ffbeb6f2 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -416,7 +416,7 @@ class Item_Model_Core extends ORM_MPTT {
module::event("item_created", $this);
} else {
// Update an existing item
- module::event("item_before_update", $item);
+ module::event("item_before_update", $this);
// If any significant fields have changed, load up a copy of the original item and
// keep it around.