From d8faa4e7e3fb74e554f6c9339f6fe4e2883c3bf1 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Fri, 18 Sep 2015 13:43:03 -0400
Subject: [PATCH] Fix by dirkd: Since file() doesn't remove "\n" from the lines read the condition $lines[$l] == '' never evaluated to true. So $mailHeaders would always contain every line from the template while $mailBody contained none of them.

---
 interface/web/index.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/interface/web/index.php b/interface/web/index.php
index af91b26..7cdf5bd 100644
--- a/interface/web/index.php
+++ b/interface/web/index.php
@@ -97,10 +97,13 @@
 }
 $tmp_base64 = explode(',', $base64_logo_txt, 2);
 $logo_dimensions = $app->functions->getimagesizefromstring(base64_decode($tmp_base64[1]));
-$app->tpl->setVar('base64_logo_width', $logo_dimensions[0]);
-$app->tpl->setVar('base64_logo_height', $logo_dimensions[1]);
+$app->tpl->setVar('base64_logo_width', $logo_dimensions[0].'px');
+$app->tpl->setVar('base64_logo_height', $logo_dimensions[1].'px');
 $app->tpl->setVar('base64_logo_txt', $base64_logo_txt);
 
+// Title
+$app->tpl->setVar('company_name', $sys_config['company_name']. ' :: ');
+
 $app->tpl_defaults();
 $app->tpl->pparse();
 ?>

--
Gitblit v1.9.1