From 04218aed19f9958f5542f21df3e5cb57037173ac Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 10 Nov 2022 09:41:13 +0000 Subject: [PATCH] wip #5535 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 b358c596a..b109b9479 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -706,7 +706,8 @@ class wsHTML5Compiler $this->_commonPuma(); } - protected function _commonPuma(){ + protected function _commonPuma() + { $this->addJsLib('parsley', 'js/libs/parsley.min.js'); $this->addJsLib('cookie', 'js/libs/jquery/jquery.cookie.js'); @@ -741,8 +742,10 @@ class wsHTML5Compiler if ($fname !== '') { $fname = str_replace(' ', '-', $fname); $wfile = $this->wdir . 'commerce/' . $fname; + if (file_exists($wfile)) { - $fname = 'data/commerce/' . $fname; + $s = getimagesize($wfile); + $fname = ''; $this->vdir->copy($wfile, $fname); } else { $fname = ''; @@ -3864,7 +3867,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $legend = (string)$child; $caption = $legend ? '
' . $legend . '
' : ''; if (file_exists($filepath)) { - $dim = getimagesize($filepath); + $dim = CubeIT_Image::getimagesize($filepath); } else { $dim = [0 => 1024, 1 => 10]; } -- 2.39.5