From 4d2bd1c34d32557e69f19a9c17bee90505ddc9eb Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 17 Jan 2024 18:20:10 +0100 Subject: [PATCH] 1408 petite optimisation admin.css --- core/module/theme/theme.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 85fe31f..acb089d 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -629,9 +629,9 @@ class theme extends common $this->setFonts('all'); // Polices liées au thème - $admin = json_decode(file_get_contents(self::DATA_DIR . 'admin.json'), true); - $fonts['Admin Titre (admin)'] = $admin['admin']['fontTitle']; - $fonts['Admin Texte (admin)'] = $admin['admin']['fontText']; + $admin = $this->getData(['admin']); + $fonts['Admin Titre (admin)'] = $this->getData(['admin', 'fontTitle']); + $fonts['Admin Texte (admin)'] = $this->getData(['admin', 'fontText']); // Polices liées aux thèmes des espaces foreach ($this->getData(['course']) as $courseId => $courseValue) { $theme = json_decode(file_get_contents(self::DATA_DIR . $courseId . '/theme.json'), true);