From: vincent@cubedesigners.com Date: Wed, 12 Jun 2019 13:11:15 +0000 (+0000) Subject: fix #2829 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5c5f9aae98d271dd7dcd8aae3c03485a06c8bca9;p=cubeextranet.git fix #2829 @0:15 --- 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 7d034d8bb..9f2bf926e 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1472,11 +1472,12 @@ class wsHTML5Compiler $uglify->execute(); $uglify->debug(); } else { + $uglify = null; copy($tmp, $minimized); } if (!file_exists($minimized) || filesize($minimized) == 0) { - die('An error occured while uglifying ' . $hasNonMin . '? ' . $minimized . ': ' . $uglify->commande . ' :: ' . $uglify->output); + die('An error occured while uglifying ' . $hasNonMin . '? ' . $minimized . ': ' . ($uglify ?? $uglify->commande) . ' :: ' . ($uglify ?? $uglify->output) . '(' . implode(',', $files) . ')'); } } $dest = 'data/' . $jsfinal . '.js'; diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 86fb08f77..9d43ccaf5 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1887,7 +1887,7 @@ class slideshowLink extends normalLink public function generateSlideshow() { - $this->compiler->addJsLib('slick', 'js/libs/slick/slick.js'); + $this->compiler->addJsLib('slick', 'js/libs/slick/slick.min.js'); $this->compiler->addLess('slick/slick-bundle'); $this->compiler->addLess('fluidbook.slideshow');