From b3924c73b42ea5c1b1ce9ff011b79c9e2039a9fe Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 6 Jan 2024 16:04:17 +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 45147fb..fa18108 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -741,7 +741,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), ] ]);