From 451de3a944619fee28d82ee746bf14b4868d89e6 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 6 Jul 2022 13:04:50 +0200 Subject: [PATCH] wait #5346 @0:10 --- app/Models/Quiz.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5