|
|
|
@ -621,6 +621,7 @@ $set['customer-email-verification-required'] = empty($_POST['email-verification'
|
|
|
|
|
$set['html_emails'] = empty($_POST['html_emails']) ? 0 : 1;
|
|
|
|
|
$set['use_bootstrap_theme'] = empty($_POST['use_bootstrap_theme']) ? 0 : 1;
|
|
|
|
|
$set['new_kb_article_visibility'] = hesk_checkMinMax( intval( hesk_POST('new_kb_article_visibility') ) , 0, 2, 2);
|
|
|
|
|
$set['mfh_attachments'] = empty($_POST['email_attachments']) ? 0 : 1;
|
|
|
|
|
|
|
|
|
|
if ($set['customer-email-verification-required'])
|
|
|
|
|
{
|
|
|
|
@ -677,7 +678,10 @@ $modsForHesk_settings[\'mailgun_domain\'] = \''.$set['mailgun_domain'].'\';
|
|
|
|
|
$modsForHesk_settings[\'use_bootstrap_theme\'] = '.$set['use_bootstrap_theme'].';
|
|
|
|
|
|
|
|
|
|
//-- Default value for new Knowledgebase article: 0 = Published, 1 = Private, 2 = Draft
|
|
|
|
|
$modsForHesk_settings[\'new_kb_article_visibility\'] = '.$set['new_kb_article_visibility'].';';
|
|
|
|
|
$modsForHesk_settings[\'new_kb_article_visibility\'] = '.$set['new_kb_article_visibility'].';
|
|
|
|
|
|
|
|
|
|
//-- Setting for adding attachments to email messages. Either 0 for default-HESK behavior, or 1 to send as attachments
|
|
|
|
|
$modsForHesk_settings[\'attachments\'] = '.$set['mfh_attachments'].';';
|
|
|
|
|
|
|
|
|
|
// Write the file
|
|
|
|
|
if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) )
|
|
|
|
|