summaryrefslogtreecommitdiff
path: root/modules/notification
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-25 13:22:24 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-25 13:22:24 -0800
commit2e420522ece22942a9b3b6ee413ca0e1dfa76148 (patch)
treefd4732002d64e230b04f348941f969c52f763d03 /modules/notification
parente201536d82d6ed49b7c4832f367a01029de05dd6 (diff)
Preliminary work to cut over to Kohana 2.4
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/helpers/notification.php2
-rw-r--r--modules/notification/helpers/notification_event.php28
2 files changed, 15 insertions, 15 deletions
diff --git a/modules/notification/helpers/notification.php b/modules/notification/helpers/notification.php
index 9a40b0b9..d525e03e 100644
--- a/modules/notification/helpers/notification.php
+++ b/modules/notification/helpers/notification.php
@@ -38,7 +38,7 @@ class notification {
->where("item_id", $item->id)
->where("user_id", $user->id)
->find()
- ->loaded;
+ ->loaded();
}
static function add_watch($item, $user=null) {
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index 6b2df574..e6d09d74 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -25,8 +25,8 @@ class notification_event_Core {
try {
notification::send_item_updated($new);
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::item_updated() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::item_updated() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -34,8 +34,8 @@ class notification_event_Core {
try {
notification::send_item_add($item);
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::item_created() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::item_created() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -47,8 +47,8 @@ class notification_event_Core {
notification::remove_watch($item);
}
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::item_deleted() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::item_deleted() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -69,8 +69,8 @@ class notification_event_Core {
notification::send_comment_published($comment);
}
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::comment_created() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::comment_created() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -80,8 +80,8 @@ class notification_event_Core {
notification::send_comment_published($new);
}
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::comment_updated() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::comment_updated() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -91,8 +91,8 @@ class notification_event_Core {
->where("user_id", $user->id)
->delete_all();
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::user_before_delete() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::user_before_delete() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}
@@ -100,8 +100,8 @@ class notification_event_Core {
try {
notification::send_pending_notifications();
} catch (Exception $e) {
- Kohana::log("error", "@todo notification_event::batch_complete() failed");
- Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "@todo notification_event::batch_complete() failed");
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
}
}