]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7997 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Feb 2026 16:31:18 +0000 (17:31 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Feb 2026 16:31:18 +0000 (17:31 +0100)
app/Fluidbook/Compiler/Compiler.php

index 21321d23cfed06d0cbccbf548b14cb8f9b4a6e0d..53b7f30c54d6dd5c85247a38774394a63579c52f 100644 (file)
@@ -554,7 +554,7 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
         $this->numerotation = $this->config->numerotation = explode(',', $this->getFluidbook()->page_numbers);
         $this->config->dynamicBackgroundColor = [];
         $this->config->masks = [];
-        $this->config->linksScale=$this->linkScale;
+        $this->config->linksScale = $this->linkScale;
         $this->initTabsConfig();
 
         $this->config->triggersLinks = [];
@@ -1656,6 +1656,10 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
                 $reminimize = true;
             }
 
+            if (rand(1, 10) == 5) {
+                $reminimize = true;
+            }
+
             if (!$reminimize) {
                 foreach ($files as $file) {
                     $f = $this->assets . '/' . $file;