]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5346 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jul 2022 11:04:50 +0000 (13:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jul 2022 11:04:50 +0000 (13:04 +0200)
app/Models/Quiz.php

index 9c420632600124e8133a30ea93ab4f1830d7b335..b2f12d6953aad4577d3513d67569c939da74cb62 100644 (file)
@@ -275,7 +275,8 @@ class Quiz extends ToolboxModel
 
 
         if ($forceScorm || $this->getAttribute('scorm')) {
-            $manifest = new Manifest($this->getAttribute('title'), $this->getAttribute('scorm_version'), $this->getAttribute('client') ?: backpack_user()->getCompanyNameAttribute(), $this->getAttribute('project') ?: 'Quiz');
+            $scormVersion = $this->getAttribute('scorm_version') ?: '1.2';
+            $manifest = new Manifest($this->getAttribute('title'), $scormVersion, $this->getAttribute('client') ?: backpack_user()->getCompanyNameAttribute(), $this->getAttribute('project') ?: 'Quiz');
             $vdir->file_put_contents('imsmanifest.xml', $manifest);
         }
         $vdir->sync(true);