]> _ Git - fluidbook-toolbox.git/commitdiff
#7954
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Jan 2026 15:36:42 +0000 (16:36 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Jan 2026 15:36:42 +0000 (16:36 +0100)
app/Fluidbook/Compiler/Accessibility.php
app/Fluidbook/Farm.php

index 758958c518a549424b4494d06fde1ee44bd49492..f7b091bbf97481df36ae48efe94d9e472873b5a9 100644 (file)
@@ -179,7 +179,9 @@ trait Accessibility
                 if (file_exists($o)) {
                     $o = file_get_contents($o);
                 }
-                $res .= $o;
+                if ($o !== true) {
+                    $res .= $o;
+                }
             }
         }
 
index 6923784d5d83d552274832c3dee8d43d0a8f2160..64891a45949a7408757708b4efcb4efc18d26c47 100644 (file)
@@ -321,7 +321,7 @@ class Farm
             return self::_getFile(
                 ['operation' => 'ocr',
                     'file' => $file,
-                    'locale' => $locale], 0, true, true);
+                    'locale' => $locale], 0, false, true);
         });
     }