summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index 2c7ede27..edbf6e39 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -23,7 +23,7 @@ class notification_event_Core {
// so we don't pass the exception up the call stack
static function item_updated($original, $new) {
try {
- notification::send_item_updated($new);
+ notification::send_item_updated($original, $new);
} catch (Exception $e) {
Kohana_Log::add("error", "@todo notification_event::item_updated() failed");
Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
@@ -89,9 +89,10 @@ class notification_event_Core {
static function user_before_delete($user) {
try {
- ORM::factory("subscription")
+ db::build()
+ ->delete("subscriptions")
->where("user_id", "=", $user->id)
- ->delete_all();
+ ->execute();
} catch (Exception $e) {
Kohana_Log::add("error", "@todo notification_event::user_before_delete() failed");
Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());