From 91c6c0347aea6fc347a08e76cf11766d7af173f8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 17 Jan 2024 18:25:09 +0100 Subject: [PATCH] 1408 commentaires --- core/module/theme/theme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index acb089d..1ee61d4 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -628,7 +628,7 @@ class theme extends common // Toutes les fontes installées sont chargées $this->setFonts('all'); - // Polices liées au thème + // Polices liées au thème admin $admin = $this->getData(['admin']); $fonts['Admin Titre (admin)'] = $this->getData(['admin', 'fontTitle']); $fonts['Admin Texte (admin)'] = $this->getData(['admin', 'fontText']); @@ -656,11 +656,12 @@ class theme extends common foreach ($f as $type => $typeValue) { if (is_array($typeValue)) { foreach ($typeValue as $fontId => $fontValue) { - // Recherche les correrspondances + // Recherche les correspondances $result = array_filter($fonts, function($value) use ($fontId) { return $value == $fontId; }); $keyResults = array_keys($result); + // Préparation du tableau self::$fontsDetail[] = [ $fontId, '' . $f[$type][$fontId]['name'] . '',