Enable MAIN_MAIL_ADD_INLINE_IMAGES_IF_DATA by default

This commit is contained in:
Laurent Destailleur 2022-11-21 18:30:17 +01:00
parent 8a70e0de72
commit 6aefc9edfc
2 changed files with 5 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class CMailFile
}
// Set atleastoneimage if there is at least one embedded file (into ->html_images)
if ($findimg) {
if ($findimg > 0) {
foreach ($this->html_images as $i => $val) {
if ($this->html_images[$i]) {
$this->atleastoneimage = 1;

View File

@ -923,6 +923,10 @@ class Conf
// Note: Set MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL=1 to have a renewal of token at each page call instead of each session (not recommended)
}
if (!isset($this->global->MAIN_MAIL_ADD_INLINE_IMAGES_IF_DATA)) {
$this->global->MAIN_MAIL_ADD_INLINE_IMAGES_IF_DATA = 1;
}
if (!defined('MAIN_ANTIVIRUS_BYPASS_COMMAND_AND_PARAM')) {
if (defined('MAIN_ANTIVIRUS_COMMAND')) {
$this->global->MAIN_ANTIVIRUS_COMMAND = constant('MAIN_ANTIVIRUS_COMMAND');