From 5d557ade80fc0153ac6b9ee7599df783b55760ab Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 5 May 2020 12:04:06 +0000 Subject: - Bugfix: Logo in E-Mail Konfiguration lässt sich speichern / Task #726 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7716 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mailtemplates/html/logo.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/mailtemplates/html') diff --git a/views/mailtemplates/html/logo.phtml b/views/mailtemplates/html/logo.phtml index c4ecb8d..bbd3b1d 100644 --- a/views/mailtemplates/html/logo.phtml +++ b/views/mailtemplates/html/logo.phtml @@ -21,9 +21,9 @@ if(file_exists($logoPath)) { - $logoType = pathinfo($logoPath); + $logoType = mime_content_type($logoPath); $logoData = file_get_contents($logoPath); - $logoBase64 = 'data:image/' . $logoType . ';base64,' . base64_encode($logoData); + $logoBase64 = 'data:'.$logoType.';base64,'.base64_encode($logoData); } } -- cgit v1.2.3