diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-03 06:29:16 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-03 06:29:16 +0000 |
commit | 0408a0096acbbeac7439878654ecbbf191e5ddb6 (patch) | |
tree | 8dbf2fc78dc3a09f5caa925ec98da8fa2f6d0821 /modules/notification | |
parent | b7a72825af7559f2fd39de0d4335049d3aa91e28 (diff) |
Undo r20234
Diffstat (limited to 'modules/notification')
-rw-r--r-- | modules/notification/helpers/notification_event.php | 6 | ||||
-rw-r--r-- | modules/notification/helpers/notification_installer.php | 9 |
2 files changed, 1 insertions, 14 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php index 1568b854..3fccdfbe 100644 --- a/modules/notification/helpers/notification_event.php +++ b/modules/notification/helpers/notification_event.php @@ -23,11 +23,7 @@ class notification_event_Core { } static function item_created($item) { - $batch_id = Session::instance()->get("batch_id"); - if (!batch::in_progress("add") { - notification::send_item_add($item); - } else { - } + notification::send_item_add($item); } static function item_before_delete($item) { diff --git a/modules/notification/helpers/notification_installer.php b/modules/notification/helpers/notification_installer.php index d3ea2582..dc70d93c 100644 --- a/modules/notification/helpers/notification_installer.php +++ b/modules/notification/helpers/notification_installer.php @@ -33,14 +33,6 @@ class notification_installer { UNIQUE KEY (`user_id`, `item_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - $db->query("CREATE TABLE IF NOT EXISTS {pending_notifications} ( - `id` int(9) NOT NULL auto_increment, - `item_id` int(9) NOT NULL, - `batch_id` int(9) NOT NULL, - `time` int(9) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY (`batch_id`, `item_id`), - ENGINE=InnoDB DEFAULT CHARSET=utf8;"); module::set_version("notification", 1); } } @@ -48,7 +40,6 @@ class notification_installer { static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS {subscriptions};"); - $db->query("DROP TABLE IF EXISTS {notification_queue};"); module::delete("notification"); } |