diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 00:15:23 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 00:15:23 -0800 |
commit | 434d351b2f0fc2a048f561665cb1d828d1126f9c (patch) | |
tree | 12b23d33fecf0e5b053a79ed1bf3b8a604c98372 /modules/comment | |
parent | 654b103355f1bda15246e651fa91f3c9e08c3901 (diff) | |
parent | dcf4b5e71ae8a097f133a06485d60c5fb3400824 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Conflicts:
modules/gallery/models/item.php
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/models/comment.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php index 59b85233..e0b82039 100644 --- a/modules/comment/models/comment.php +++ b/modules/comment/models/comment.php @@ -65,12 +65,14 @@ class Comment_Model extends ORM { } } $visible_change = $this->original()->state == "published" || $this->state == "published"; + + $original = clone $this->original(); parent::save(); if (isset($created)) { module::event("comment_created", $this); } else { - module::event("comment_updated", $this->original(), $this); + module::event("comment_updated", $original, $this); } // We only notify on the related items if we're making a visible change. |