From bcec4c6dbcbb7a14816057531894e0ee03aa48be Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Sat, 24 Nov 2007 11:31:04 +0000 Subject: [PATCH] fixed bug in new notifications: wrong function name and signature of get_body --- etemplate/inc/class.bo_tracking.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.bo_tracking.inc.php b/etemplate/inc/class.bo_tracking.inc.php index fcb8e23d43..e82d8b779c 100644 --- a/etemplate/inc/class.bo_tracking.inc.php +++ b/etemplate/inc/class.bo_tracking.inc.php @@ -374,7 +374,7 @@ class bo_tracking try { $notification = new notification(); $notification->set_receivers(array($user_or_lang)); - $notification->set_message($this->get_notification_body($data,$old)); + $notification->set_message($this->get_body(false,$data,$old)); $notification->set_sender($this->user); $notification->set_subject($subject); $notification->set_links(array($this->get_notification_link($data,$old))); @@ -608,11 +608,12 @@ class bo_tracking /** * Get the body of the notification message for notification-app * + * @param array $html_email - ignored till I find a solution for new notifications * @param array $data * @param array $old * @return string */ - function get_notification_body($data,$old) + function get_body($html_email = false, $data,$old) { $body = ''; // new or modified message