From: vincent@cubedesigners.com Date: Thu, 12 Dec 2019 18:09:42 +0000 (+0000) Subject: fix #3266 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c6c9a98cbaf762162667cd1d3d8c9d4298b81814;p=cubeextranet.git fix #3266 @1 --- diff --git a/inc/ws/Util/packager/class.ws.packager.scorm.php b/inc/ws/Util/packager/class.ws.packager.scorm.php index 921eafca3..c68b0e68d 100644 --- a/inc/ws/Util/packager/class.ws.packager.scorm.php +++ b/inc/ws/Util/packager/class.ws.packager.scorm.php @@ -2,11 +2,20 @@ class wsPackagerSCORM extends wsPackagerHTML { - public function __construct($book_id, $vdir = null, $whole = true) - { - parent::__construct($book_id, $vdir, $whole); - $this->version = 'scorm'; - $this->_forceOnlyHtml = true; - $this->_disableScorm = false; - } + public function __construct($book_id, $vdir = null, $whole = true) + { + parent::__construct($book_id, $vdir, $whole); + $this->version = 'scorm'; + $this->_forceOnlyHtml = true; + $this->_disableScorm = false; + } + + protected function preparePackage() + { + $res = parent::preparePackage(); + $manifests = $this->vdir . '/m/data/links/*/imsmanifest.xml'; + $cmd = "rm $manifests"; + `$cmd`; + return $res; + } } \ No newline at end of file