]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6998 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Sep 2024 08:52:21 +0000 (10:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Sep 2024 08:52:21 +0000 (10:52 +0200)
app/Fluidbook/Compiler/Compiler.php

index 0a678a56a3b13a9c8e4ca54f6c7b461776e43a06..7b776f07ab32ea5c9c90a2e78c183765cc4445f4 100644 (file)
@@ -1995,7 +1995,7 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
             $res[] = '@font-face{font-family: "' . $hash . '";src:url("../../data/fonts/' . $hash . '.woff") format("woff");}';
         }
 
-        if ($this->fluidbookSettings->textPopupStylesheet) {
+        if ($this->fluidbookSettings->textPopupStylesheet && file_exists($this->wdir . '/' . $this->fluidbookSettings->textPopupStylesheet)) {
             $res[] = file_get_contents($this->wdir . '/' . $this->fluidbookSettings->textPopupStylesheet);
         }
         $this->log('CSS 13');