1408 petite optimisation admin.css

This commit is contained in:
Fred Tempez 2024-01-17 18:20:10 +01:00
parent 280962b852
commit 4d2bd1c34d
1 changed files with 3 additions and 3 deletions

View File

@ -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);