]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5784 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Mar 2023 16:29:43 +0000 (17:29 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Mar 2023 16:29:43 +0000 (17:29 +0100)
app/Jobs/FluidbookCompiler.php

index 851563508c4cdff7b21900450357c65eb59be324..d5199c164baaf0ff82ce0dbd0081b6f832956038 100644 (file)
@@ -1549,7 +1549,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
             $text = str_replace(array_keys($replace), array_values($replace), $text);
             $text = Text::cleanUTF8($text, '');
 
-            $voiceInfos = $data['voice'] ?: $this->fluidbookSettings->audiodescriptionVoice;
+            $voiceInfos = $data['voice'] ?? $this->fluidbookSettings->audiodescriptionVoice;
 
             if ($voiceInfos) {
                 $e = explode(':', $voiceInfos);
@@ -2628,7 +2628,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
         if ($ext === 'txt') {
             $file = $this->wdir . '/' . $link['to'];
             if (file_exists($file)) {
-                $this->audioDescriptionTextsList[$link['page']] = file_get_contents($file);
+                $this->audioDescriptionTextsList[$link['page']] = ['text' => file_get_contents($file)];
             }
         } else {
             $this->config->set('audiodescription.' . $link['page'], $link['to']);