]> _ Git - cubeextranet.git/commitdiff
fix #2140 @0:15
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 16 Jul 2018 15:18:31 +0000 (15:18 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 16 Jul 2018 15:18:31 +0000 (15:18 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 5d2126afbcb1c07a6b1afbf18bba953711e13882..8268f264bb4f03845d2619e465c1c82acde71023 100644 (file)
@@ -1003,10 +1003,10 @@ class htmlMultimediaLink extends wsHTML5Link
                        } elseif ($ext == 'zip') {
                                $d = $this->unzipFile($this->alternative, false);
                                $this->_config = $this->getConfigZIP($d['dir']);
+                               $this->copyExternalDir($d['dir'], $d['fdir']);
                                if(file_exists($d['dir'] . '/index.html')) {
                                        $html = file_get_contents($d['dir'] . '/index.html');
                                        $html = str_replace('var pRatio = window.devicePixelRatio || 1,', 'var pRatio = 0.5,', $html);
-                                       $this->copyExternalDir($d['dir'], $d['fdir']);
                                        $this->_config['lowDef'] = 'index_ld.html';
                                        $this->compiler->vdir->file_put_contents($d['fdir'] . '/' . $this->_config['lowDef'], $html);
                                }