From: Vincent Vanwaelscappel Date: Thu, 12 Sep 2024 08:52:21 +0000 (+0200) Subject: wip #6998 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f3fd238d03d6a7717ad2898951f6552944839fd5;p=fluidbook-toolbox.git wip #6998 @0.25 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 0a678a56a..7b776f07a 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -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');