From: Vincent Vanwaelscappel Date: Wed, 6 Jul 2022 11:04:50 +0000 (+0200) Subject: wait #5346 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=451de3a944619fee28d82ee746bf14b4868d89e6;p=fluidbook-toolbox.git wait #5346 @0:10 --- diff --git a/app/Models/Quiz.php b/app/Models/Quiz.php index 9c4206326..b2f12d695 100644 --- a/app/Models/Quiz.php +++ b/app/Models/Quiz.php @@ -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);