From 9fac1180045edd0b600f7a79175c6ee76cd5959b Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 6 Jan 2024 16:04:15 +0100 Subject: [PATCH] =?UTF-8?q?fonte=20install=C3=A9e=20ou=20import=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 61834658..f1cd7182 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -740,7 +740,8 @@ class theme extends common [ 'name' => $fontName, 'font-family' => $fontFamilyName, - 'resource' => self::DATA_DIR . 'font/' . basename($resource) + // Stocke l'URL our lien vers la fonte dans data + 'resource' => $type === 'imported' ? $resource : self::DATA_DIR . 'font/' . basename($resource), ] ]);