From 2179e2011e8328da09e0f1ffc2cede043443188c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 19 Nov 2018 23:38:07 +0100 Subject: [PATCH 1/2] doc cmail class --- htdocs/core/class/CMailFile.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/CMailFile.class.php b/htdocs/core/class/CMailFile.class.php index 814fb3f1934..21ca51917d5 100644 --- a/htdocs/core/class/CMailFile.class.php +++ b/htdocs/core/class/CMailFile.class.php @@ -68,8 +68,10 @@ class CMailFile var $smtps; // Contains SMTPs object (if this method is used) var $phpmailer; // Contains PHPMailer object (if this method is used) - //CSS - var $css; + /** + * @var string CSS + */ + public $css; //! Defined css style for body background var $styleCSS; //! Defined background directly in body tag @@ -944,7 +946,7 @@ class CMailFile /** * Build a css style (mode = all) into this->styleCSS and this->bodyCSS * - * @return css + * @return string */ function buildCSS() { From 4e60e48f3448736a3455cc310928a966a60373bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 19 Nov 2018 23:43:58 +0100 Subject: [PATCH 2/2] Update CMailFile.class.php --- htdocs/core/class/CMailFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/CMailFile.class.php b/htdocs/core/class/CMailFile.class.php index 21ca51917d5..52d98790dcc 100644 --- a/htdocs/core/class/CMailFile.class.php +++ b/htdocs/core/class/CMailFile.class.php @@ -1234,7 +1234,7 @@ class CMailFile { foreach ($images_list as $img) { - dol_syslog("CMailFile::write_images: i=$i"); + dol_syslog("CMailFile::write_images: ".$img["name"]); $out.= "--" . $this->related_boundary . $this->eol; // always related for an inline image $out.= "Content-Type: " . $img["content_type"] . "; name=\"".$img["name"]."\"".$this->eol;