static function comment_updated($original, $new) { try { if ($new->state == "published" && $original->state != "published") { notification::send_comment_published($new); } } catch (Exception $e) { Kohana_Log::add("error", "@todo notification_event::comment_updated() failed"); Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } }
static function comment_updated($item) { if ($item->state == "published" && $item->original("state") != "published") { notification::send_comment_published($new); } }
static function comment_updated($original, $new) { if ($new->state == "published" && $original->state != "published") { notification::send_comment_published($new); } }