diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php
index af606c41561..db112e04084 100644
--- a/htdocs/ticket/class/actions_ticket.class.php
+++ b/htdocs/ticket/class/actions_ticket.class.php
@@ -274,11 +274,11 @@ class ActionsTicket extends CommonHookActions
* View html list of message for ticket
*
* @param bool $show_private Show private messages
- * @param bool $show_user Show user who make action
+ * @param bool $show_author Show who post the message
* @param Ticket $object Object ticket
* @return void
*/
- public function viewTicketMessages($show_private, $show_user, $object)
+ public function viewTicketMessages($show_private, $show_author, $object)
{
global $langs, $user;
@@ -306,9 +306,9 @@ class ActionsTicket extends CommonHookActions
print $langs->trans('TicketMessagesList');
print '';
- if ($show_user) {
+ if ($show_author) {
print '
';
- print $langs->trans('User');
+ print $langs->trans('Author');
print ' | ';
}
print '';
@@ -322,7 +322,7 @@ class ActionsTicket extends CommonHookActions
print '';
print img_picto('', 'object_action', 'class="paddingright"').dol_print_date($arraymsgs['datep'], 'dayhour');
print ' | ';
- if ($show_user) {
+ if ($show_author) {
print '';
if ($arraymsgs['fk_user_author'] > 0) {
$userstat = new User($this->db);
@@ -348,7 +348,7 @@ class ActionsTicket extends CommonHookActions
print '';
print ' | ';
- print '| ';
+ print ' | ';
print $arraymsgs['message'];
//attachment
@@ -443,17 +443,16 @@ class ActionsTicket extends CommonHookActions
* View list of message for ticket with timeline display
*
* @param bool $show_private Show private messages
- * @param bool $show_user Show user who make action
+ * @param bool $show_author Show who post the message
* @param Ticket $object Object ticket
* @return void
*/
- public function viewTicketTimelineMessages($show_private, $show_user, Ticket $object)
+ public function viewTicketTimelineMessages($show_private, $show_author, Ticket $object)
{
- global $conf, $langs, $user;
+ global $langs;
// Load logs in cache
- $ret = $object->loadCacheMsgsTicket();
- $action = GETPOST('action');
+ $object->loadCacheMsgsTicket();
if (is_array($object->cache_msgs_ticket) && count($object->cache_msgs_ticket) > 0) {
print '';
@@ -473,7 +472,7 @@ class ActionsTicket extends CommonHookActions
print '';
print dol_print_date($arraymsgs['datec'], 'dayhour');
- if ($show_user) {
+ if ($show_author) {
if ($arraymsgs['fk_user_action'] > 0) {
$userstat = new User($this->db);
$res = $userstat->fetch($arraymsgs['fk_user_action']);
|