]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Oct 2014 13:43:26 +0000 (13:43 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Oct 2014 13:43:26 +0000 (13:43 +0000)
inc/ws/Util/html5/class.ws.html5.links.php

index a6d952dd1b6ab47b5d36d369e3ac7926f0afa1f5..85087c29baab42e168533aa9cc78c8f3cc6d1fcf 100644 (file)
@@ -577,15 +577,22 @@ class htmlMultimediaLink extends wsHTML5Link {
                        if ($ext == 'oam') {
                                $d = $this->unzipFile($this->alternative, true);
                                $this->_config = $this->getConfigOAM($d['dir']);
+                               $this->copyExternalDir($d['dir']);
                        } elseif ($ext == 'zip') {
                                $d = $this->unzipFile($this->alternative, false);
                                $this->_config = $this->getConfigZIP($d['dir']);
+                               $this->copyExternalDir($d['dir']);
                        } elseif ($ext == 'html') {
                                $fdir = 'data/links';
                                $dir = $this->compiler->vdir . '/' . $fdir;
                                $d = array('fdir' => $fdir, 'dir' => $dir);
+                               if (!file_exists($d['dir'])) {
+                                       fb($d['dir']);
+                                       mkdir($d['dir'], 0777, true);
+                               }
                                copy($this->compiler->wdir . '/' . $this->alternative, $d['dir'] . '/' . $this->alternative);
                                $this->_config = $this->getConfigHTML($d['dir'], $this->alternative);
+                               $this->copyExternalFile($d['dir'] . '/' . $this->alternative);
                        }
 
                        $w = $this->width * $this->getCssScale();
@@ -617,7 +624,7 @@ class htmlMultimediaLink extends wsHTML5Link {
                                $this->compiler->pluginJs[] = $d['fdir'] . '/' . $i;
                        }
 
-                       $this->copyExternalDir($d['dir']);
+
                        $this->_content = $res;
                }
                return $this->_content;