From 6536424514edfbfa495cac97ff7c05ab4e5e1cb5 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 17 Nov 2022 12:16:40 +0000 Subject: [PATCH] wait #5577 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 1e2ace5ef..2c8c775f2 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -744,8 +744,12 @@ class wsHTML5Compiler $wfile = $this->wdir . 'commerce/' . $fname; if (file_exists($wfile)) { - $s = CubeIT_Image::getimagesize($wfile); - $html = ''; + if (stristr($wfile, '.png') || stristr($wfile, '.jpg')) { + $s = CubeIT_Image::getimagesize($wfile); + $html = ''; + } else { + $html = 'data/commerce/' . $fname; + } $this->vdir->copy($wfile, 'data/commerce/' . $fname); $fname = $html; } else { -- 2.39.5