Replace getDolGlobalString by getDolGlobalInt

This commit is contained in:
Benjamin Falière
2025-02-25 21:09:59 +01:00
parent 0c573812e9
commit db56e5c8ea

View File

@@ -427,7 +427,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
}
$message_customer .= '<p>'.$langs->trans('Message').' : <br><br>'.$message.'</p><br>';
if (getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE')) {
if (getDolGlobalInt('TICKET_ENABLE_PUBLIC_INTERFACE')) {
$url_public_ticket = ($conf->global->TICKET_URL_PUBLIC_INTERFACE ? $conf->global->TICKET_URL_PUBLIC_INTERFACE.'/view.php' : dol_buildpath('/public/ticket/view.php', 2)).'?track_id='.$object->track_id;
$message_customer .= '<p>'.$langs->trans($see_ticket).' : <a href="'.$url_public_ticket.'">'.$url_public_ticket.'</a></p>';
$message_customer .= '<p>'.$langs->trans('TicketEmailPleaseDoNotReplyToThisEmail').'</p>';