From: Vincent Vanwaelscappel Date: Wed, 8 Dec 2021 13:09:15 +0000 (+0100) Subject: wait #4891 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2c312b17c7c5e6de6a298be19a8628921013eb95;p=fluidbook-toolbox.git wait #4891 @0.5 --- diff --git a/.idea/deployment.xml b/.idea/deployment.xml index 870eb12e0..9040504e8 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -9,13 +9,6 @@ - - - - - - - @@ -51,13 +44,6 @@ - - - - - - - @@ -65,13 +51,6 @@ - - - - - - - @@ -142,13 +121,6 @@ - - - - - - - @@ -173,6 +145,20 @@ + + + + + + + + + + + + + + @@ -250,13 +236,6 @@ - - - - - - - @@ -306,13 +285,6 @@ - - - - - - - diff --git a/app/Jobs/FluidbookCollectionDownload.php b/app/Jobs/FluidbookCollectionDownload.php index 7e7fff021..101c63300 100644 --- a/app/Jobs/FluidbookCollectionDownload.php +++ b/app/Jobs/FluidbookCollectionDownload.php @@ -175,15 +175,20 @@ class FluidbookCollectionDownload implements ShouldQueue $default = $langs[0]; } + $manifestFile = $path . '/imsmanifest.xml'; foreach ($langs as $lang) { $manifest = $path . '/' . $lang . '/imsmanifest.xml'; if ($lang === $default) { - rename($manifest, $path . '/imsmanifest.xml'); + rename($manifest, $manifestFile); } else { unlink($manifest); } } + $manifestContent=file_get_contents($manifestFile); + $manifestContent=preg_replace('/\(.*)\<\/title\>/U',''.htmlspecialchars($this->collection->title).'',$manifestContent); + file_put_contents($manifestFile,$manifestContent); + $redirectionScript = " @@ -270,7 +275,6 @@ window.location='./' + locale + '/index.html'; $config->setPassword(env('SCORM_CLOUD_SECRET_KEY')); ScormCloud\Configuration::setDefaultConfiguration($config); - $courseId = 'toolbox_collection_' . $this->collection->getKey(); $courseAPI = new ScormCloud\Api\CourseApi(); $request = new ScormCloud\Model\ImportFetchRequestSchema(['url' => $url, 'content_type' => 'application/zip', 'media_file_metadata' => ['title' => $this->collection->title]]);