Browse Source

Fix annoucement sender issue - ref #5738

Hubert Borderiou 12 years ago
parent
commit
4e37bacbc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/notification.lib.php

+ 1 - 1
main/inc/lib/notification.lib.php

@@ -145,7 +145,7 @@ class Notification extends Model {
                     case NOTIFY_GROUP_AT_ONCE:                     
                         if (!empty($user_info['mail'])) {
                             $name = api_get_person_name($user_info['firstname'], $user_info['lastname']);                            
-                            api_mail_html($name, $user_info['mail'], Security::filter_terms($title), Security::filter_terms($content), $this->admin_name, $this->admin_email);
+                            api_mail_html($name, $user_info['mail'], Security::filter_terms($title), Security::filter_terms($content), $sender_info['complete_name'], $sender_info['email']);
                         }
                         $params['sent_at']       = api_get_utc_datetime();
                     //Saving the notification to be sent some day