From 43b32bde11de17cf8c7b587db96a13a9cafb5508 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 15 Aug 2018 10:25:15 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Mailer.php b/Mailer.php index 49f17ae9..99bbfac6 100644 --- a/Mailer.php +++ b/Mailer.php @@ -504,12 +504,8 @@ class Pman_Core_Mailer { $body = $dom->getElementsByTagName('body'); - $class = $dom->createAttribute('class'); - $class->value = $cls; - if (!$body->item(0)) { - echo $html; - } - $body->item(0)->appendChild($class); + $class = $dom->setAttribute('class', $cls); + return $dom->saveHTML(); } -- 2.39.2