From 0d61479b634837721de4b19ba5e61b5352587190 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 4 Apr 2012 15:04:19 +0000 Subject: [PATCH] --- inc/ws/Util/packager/class.ws.packager.v1.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/packager/class.ws.packager.v1.php b/inc/ws/Util/packager/class.ws.packager.v1.php index 9678af22e..a0a98a95e 100644 --- a/inc/ws/Util/packager/class.ws.packager.v1.php +++ b/inc/ws/Util/packager/class.ws.packager.v1.php @@ -106,7 +106,7 @@ class wsPackagerV1 extends wsPackagerHTML { $link['to'] = $this->__virtualToPhysical($link['to']); } - if ($this->_copyWorkingFile($link['to']) && !in_array($link['type'], array(4, 6))) { + if ($this->_copyWorkingFile($link['to']) && !in_array($link['type'], array(1, 4, 6))) { $link['to'] = 'data/' . $link['to']; } @@ -270,7 +270,8 @@ class wsPackagerV1 extends wsPackagerHTML { } protected function _copyWorkingFile($file, $dir = null) { - + $e = explode("$", $file); + $file = array_shift($e); if (is_null($dir)) { $dir = $this->vdir . '/data/'; } -- 2.39.5