From 15e546d2872d849531309de0c69918e82dde6bf2 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 10 Dec 2018 13:56:04 +0000 Subject: [PATCH] fix #2416 @1 --- .../Util/html5/3dflip/class.ws.html5.compiler.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/inc/ws/Util/html5/3dflip/class.ws.html5.compiler.php b/inc/ws/Util/html5/3dflip/class.ws.html5.compiler.php index b35462426..2e0ab85fc 100644 --- a/inc/ws/Util/html5/3dflip/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/3dflip/class.ws.html5.compiler.php @@ -706,7 +706,7 @@ class wsHTML5Compiler if ($this->theme->parametres->iosicon != '') { $hasIos = true; $this->vdir->copy($this->themeRoot . '/' . $this->theme->parametres->iosicon, 'data/apple-touch-icon.png'); - $favicon .= ''; + $favicon .= ''."\n\t"; } if ($this->theme->parametres->favicon != '') { @@ -725,11 +725,16 @@ class wsHTML5Compiler unlink($tmp); } + $this->vdir->copy($pngFile, 'data/favicon.png'); $this->vdir->copy($icoFile, 'data/favicon.ico'); - $favicon .= ''; - $favicon .= ''; - $favicon .= ''; + + $dataico = 'data:image/vnd.microsoft.icon;base64,' . base64_encode(file_get_contents($icoFile)); + $datapng = 'data:image/png;base64,' . base64_encode(file_get_contents($pngFile)); + + $favicon .= ''."\n\t"; + $favicon .= ''."\n\t"; + $favicon .= ''."\n\t"; if (!$hasIos) { $favicon .= ''; } -- 2.39.5