From c6c9a98cbaf762162667cd1d3d8c9d4298b81814 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 12 Dec 2019 18:09:42 +0000 Subject: [PATCH] fix #3266 @1 --- .../Util/packager/class.ws.packager.scorm.php | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) 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 -- 2.39.5