From 19bddbcdd5fd92d2848103fddd1e43ef8290b9da Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 22 Oct 2014 13:43:26 +0000 Subject: [PATCH] --- inc/ws/Util/html5/class.ws.html5.links.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/class.ws.html5.links.php b/inc/ws/Util/html5/class.ws.html5.links.php index a6d952dd1..85087c29b 100644 --- a/inc/ws/Util/html5/class.ws.html5.links.php +++ b/inc/ws/Util/html5/class.ws.html5.links.php @@ -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; -- 2.39.5