diff --git a/admin/admin_reply_ticket.php b/admin/admin_reply_ticket.php index 9ddc887a..fc59ae36 100644 --- a/admin/admin_reply_ticket.php +++ b/admin/admin_reply_ticket.php @@ -89,6 +89,7 @@ $message = hesk_input(hesk_POST('message')); // Submit as customer? $submit_as_customer = isset($_POST['submit_as_customer']) ? true : false; +$modsForHesk_settings = mfh_getSettings(); if (strlen($message)) { // Save message for later and ignore the rest? @@ -138,14 +139,14 @@ if (strlen($message)) // Attach signature to the message? if ( ! $submit_as_customer && ! empty($_POST['signature'])) { - if (mfh_getSetting('rich_text_for_tickets')) { + if ($modsForHesk_settings['rich_text_for_tickets']) { $message .= "

" . nl2br($_SESSION['signature']) . "
"; } else { $message .= "\n\n" . addslashes($_SESSION['signature']) . "\n"; } } - if (!mfh_getSetting('rich_text_for_tickets')) { + if (!$modsForHesk_settings['rich_text_for_tickets']) { // Make links clickable $message = hesk_makeURL($message); @@ -210,7 +211,7 @@ if ($hesk_settings['attachments']['use'] && !empty($attachments)) } // Add reply -$html = mfh_getSetting('rich_text_for_tickets'); +$html = $modsForHesk_settings['rich_text_for_tickets']; if ($submit_as_customer) { hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."replies` (`replyto`,`name`,`message`,`dt`,`attachments`,`html`) VALUES ('".intval($replyto)."','".hesk_dbEscape(addslashes($ticket['name']))."','".hesk_dbEscape($message."

{$hesklang['creb']} {$_SESSION['name']}")."',NOW(),'".hesk_dbEscape($myattachments)."', '".$html."')"); diff --git a/admin/admin_settings.php b/admin/admin_settings.php index e45844c7..3dbf56ef 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -328,6 +328,7 @@ if ( defined('HESK_DEMO') ) $hesklang['err_custname'] = addslashes($hesklang['err_custname']); + $modsForHesk_settings = mfh_getSettings(); ?>