From f3fd238d03d6a7717ad2898951f6552944839fd5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 12 Sep 2024 10:52:21 +0200 Subject: [PATCH] wip #6998 @0.25 --- app/Fluidbook/Compiler/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5