summaryrefslogtreecommitdiff
path: root/modules/notification/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-03 08:12:39 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-03 08:12:39 -0700
commit2e82c5e9ca3a924e98d8998b397d25c83d716d55 (patch)
tree2db525dbdf4adbdd404d9d95e171aa25c3092a5d /modules/notification/helpers
parentbb8c83db819a99e34ba45e9c1c31a79e08b7c194 (diff)
parent7ad0808a117fd1db4e94da8d7763ccca1d69350a (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/notification/helpers')
-rw-r--r--modules/notification/helpers/notification_event.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index c6e770a7..d1b76e93 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class notification_event_Core {
- static function item_updated($item) {
- notification::send_item_updated($item);
+ static function item_updated($original, $new) {
+ notification::send_item_updated($new);
}
static function item_created($item) {
@@ -40,8 +40,8 @@ class notification_event_Core {
}
}
- static function comment_updated($item) {
- if ($item->state == "published" && $item->original("state") != "published") {
+ static function comment_updated($original, $new) {
+ if ($new->state == "published" && $original->state != "published") {
notification::send_comment_published($new);
}
}