From 074a0d1d836d1b0e79ee369bc80f65372a7c7118 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 30 Jun 2022 14:29:50 +0200 Subject: [PATCH] wait #5338 @1.5 --- app/Models/ELearningMedia.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/ELearningMedia.php b/app/Models/ELearningMedia.php index 0fb13c0ea..e1dc869d5 100644 --- a/app/Models/ELearningMedia.php +++ b/app/Models/ELearningMedia.php @@ -12,6 +12,7 @@ use Cubist\Backpack\Magic\Fields\Percent; use Cubist\Backpack\Magic\Fields\StaticValue; use Cubist\Backpack\Magic\Fields\Text; use Cubist\Scorm\Manifest; +use Cubist\Scorm\Version; use Cubist\Util\Files\VirtualDirectory; use Spatie\MediaLibrary\MediaCollections\Models\Media; @@ -98,7 +99,7 @@ class ELearningMedia extends ToolboxModel $type = self::getType($ext); $vdir = new VirtualDirectory($dest); - $vdir->file_put_contents('imsmanifest.xml', new Manifest($title, Manifest::SCORM_2004, $organization, $reference)); + $vdir->file_put_contents('imsmanifest.xml', new Manifest($title, Version::SCORM_2004, $organization, $reference)); $vdir->copyDirectory(resource_path('elearningmedia/dist/css'), 'css'); $vdir->copyDirectory(resource_path('elearningmedia/dist/js'), 'js'); if ($type === 'pdf') { -- 2.39.5