From: vincent@cubedesigners.com Date: Mon, 16 May 2022 13:43:06 +0000 (+0000) Subject: wait #5241 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=49571c20a4e18f53bbb277225ba2a861867d92c4;p=cubeextranet.git wait #5241 @0.25 --- 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 21d031900..dc87a8074 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1031,9 +1031,9 @@ class wsHTML5Compiler $this->config->tagcommander_default_vars = array_merge($default, $this->parseVariables($this->book->parametres->tagcommander_default_vars)); $this->config->tagcommander_default_vars['env_work'] = $this->book->parametres->tagcommander_prod ? 'prod' : 'pre-prod'; - $scriptNames=explode(',', $this->config->tagcommander_scriptname); - $this->book->parametres->googleAnalyticsCustom .= ''; - for($i=1;$iconfig->tagcommander_scriptname); + $this->book->parametres->googleAnalyticsCustom .= ''; + for ($i = 1; $i < count($scriptNames); $i++) { $this->book->parametres->statsCustom .= ''; } @@ -2042,7 +2042,10 @@ height="0" width="0" style="display:none;visibility:hidden"> foreach ($linksCopy as $k => $linkData) { - if ($this->book->parametres->PDFRendererIframe === 'svg' && $linkData['type'] == 31 && stristr($linkData['to'], '.pdf')) { + if ($this->book->parametres->PDFRendererIframe === 'svg' && (($linkData['type'] == 31 && stristr($linkData['to'], '.pdf')) || ($linkData['type'] == 6 && stristr($linkData['alternative'], '.pdf')))) { + if ($linkData['type'] == 6) { + $linkData['to'] = $linkData['alternative']; + } $ofile = $this->wdir . '/' . $linkData['to']; $dfile = $this->wdir . '/' . $linkData['to'] . '.svg'; if (!file_exists($dfile) || filemtime($dfile) < filemtime($ofile)) {