]> _ Git - cubeextranet.git/commitdiff
fix #3266 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 12 Dec 2019 18:09:42 +0000 (18:09 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 12 Dec 2019 18:09:42 +0000 (18:09 +0000)
inc/ws/Util/packager/class.ws.packager.scorm.php

index 921eafca33d765c811ccea33e192e09c79ddcd5b..c68b0e68de8d051d96f4cbff77b22019605409db 100644 (file)
@@ -2,11 +2,20 @@
 \r
 class wsPackagerSCORM extends wsPackagerHTML\r
 {\r
-       public function __construct($book_id, $vdir = null, $whole = true)\r
-       {\r
-               parent::__construct($book_id, $vdir, $whole);\r
-               $this->version = 'scorm';\r
-               $this->_forceOnlyHtml = true;\r
-               $this->_disableScorm = false;\r
-       }\r
+    public function __construct($book_id, $vdir = null, $whole = true)\r
+    {\r
+        parent::__construct($book_id, $vdir, $whole);\r
+        $this->version = 'scorm';\r
+        $this->_forceOnlyHtml = true;\r
+        $this->_disableScorm = false;\r
+    }\r
+\r
+    protected function preparePackage()\r
+    {\r
+        $res = parent::preparePackage();\r
+        $manifests = $this->vdir . '/m/data/links/*/imsmanifest.xml';\r
+        $cmd = "rm $manifests";\r
+        `$cmd`;\r
+        return $res;\r
+    }\r
 }
\ No newline at end of file