From: vincent@cubedesigners.com Date: Thu, 15 Jul 2021 16:48:47 +0000 (+0000) Subject: wip #4592 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=57e7a4dfc801823eefdf77f5c8d213f283a569bc;p=cubeextranet.git wip #4592 @2 --- diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index faf1aa98e..2578178cc 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -622,6 +622,7 @@ class commonTools $uglify->setArg('c'); $uglify->setArg('m'); $uglify->execute(); + ob_end_clean(); header('Content-type: text/javascript'); diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 90a5772f0..e62044967 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -1237,7 +1237,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co } $id = $book_id; - if ($forceTheme) { + if ($forceTheme && strpos($id, '-') === false) { $id .= '-' . $forceTheme; } 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 700573092..1113c20ba 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -243,6 +243,7 @@ class wsHTML5Compiler $this->version = $version; + if ($version == 'stable') { $this->assets = WS_COMPILE_ASSETS . '/player/branches/master'; } else if ($version == 'dev') { @@ -252,6 +253,7 @@ class wsHTML5Compiler $this->assets = WS_COMPILE_ASSETS . '/player/' . ($location == 'git' ? 'branches' : $location) . '/' . $branch; } + $this->phonegap = $phonegap; $this->standalone = $standalone || $this->phonegap; $this->appcache = $appcache; @@ -267,7 +269,7 @@ class wsHTML5Compiler if (is_null($dir)) { $id = $book_id; - if ($forceTheme) { + if ($forceTheme && strpos($id, '-') === false) { $id .= '-' . $forceTheme; } $this->dir = WS_BOOKS . '/html5/' . $id . '/'; @@ -2098,6 +2100,8 @@ height="0" width="0" style="display:none;visibility:hidden"> unlink($minimized); } + + if (file_exists($tmp) && filesize($tmp) > 0) { if ($hasNonMin) { $uglify = new CubeIT_CommandLine('/usr/local/bin/uglifyjs');