diff --git a/include/class.ticket.php b/include/class.ticket.php index 50ad197c92ca1e8b7b85b26cf0d816f3495e7be2..9438b9032f29c18924f057e10c002bcc914f2956 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -979,7 +979,7 @@ class Ticket { * */ - function notifyCollaborators($entry) { + function notifyCollaborators($entry, $vars = array()) { global $cfg; if (!$entry instanceof ThreadEntry @@ -1002,9 +1002,11 @@ class Ticket { $uid = $this->getUserId(); } - $vars = array( - 'message' => (string) $entry, - 'poster' => $poster? $poster : 'A collaborator'); + $vars = array_merge($vars, array( + 'message' => (string) $entry, + 'poster' => $poster? $poster : 'A collaborator', + ) + ); $msg = $this->replaceVars($msg->asArray(), $vars); @@ -1601,7 +1603,7 @@ class Ticket { } } - $this->notifyCollaborators($message); + $this->notifyCollaborators($message, array('signature' => '')); return $message; } @@ -1717,7 +1719,8 @@ class Ticket { } if($vars['emailcollab']) - $this->notifyCollaborators($response); + $this->notifyCollaborators($response, + array('signature' => $signature)); return $response; }