From a3c2eb3978177ca1c43002e26041d6f76276d8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Tue, 8 Feb 2022 19:34:37 +0100 Subject: [PATCH] manque copie du fichier woff --- core/module/theme/theme.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 658e5e83..a754264e 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -562,7 +562,7 @@ class theme extends common { array_key_exists($fontId, $fonts['imported']) || array_key_exists($fontId, $fonts['files']) ? template::button('themeFontDelete' . $fontId, [ 'class' => 'themeFontDelete buttonRed', - 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $fontId . '/' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . $this->getUrl(0) . '/fontDelete/' . $fontId . '/' . $_SESSION['csrf'], 'value' => template::ico('cancel') ]) : '' @@ -584,6 +584,8 @@ class theme extends common { $fontId = $this->getInput('fontAddFontId', null, true); $fontName = $this->getInput('fontAddFontName', null, true); $file = $this->getInput('fontAddFile', null, true); + $e = explode ('/', $file); + $file = $e[count($e) - 1 ]; // Charger les données des fontes $files = $this->getData(['fonts', 'files']);