From: Vincent Vanwaelscappel Date: Mon, 30 Mar 2020 14:52:59 +0000 (+0200) Subject: wip #3530 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=959b51f92697315e03706200741b4d9008075bbf;p=fluidbook-toolbox.git wip #3530 @0.5 --- diff --git a/app/Models/Quiz.php b/app/Models/Quiz.php index bc0c344cf..472e99fb9 100644 --- a/app/Models/Quiz.php +++ b/app/Models/Quiz.php @@ -236,6 +236,30 @@ class Quiz extends CubistMagicAbstractModel $xq->addChild('correction', $question['explaination']); } file_put_contents($dest . '/data.xml', tidy_repair_string($xml->asXML(), ['input-xml' => 1, 'indent' => 1, 'wrap' => 0])); + + if ($this->getAttribute('scorm')) { + $title = htmlspecialchars($this->getAttribute('title')); + file_put_contents($dest . '/imsmanifest.xml', ' + + + ADL SCORM + 1.2 + + + + ' . $title . ' + + ' . $title . ' + + + + + + + + +'); + } } public static function getMessages()