diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 31608b9f..c0a6cc50 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -801,7 +801,7 @@ if ($this->getData(['core', 'dataVersion']) < 11400) { ]; // Conversion des fontes locales - + $files = $this->getData(['font', 'files']); if (is_array($files)) { @@ -1015,6 +1015,15 @@ if ($this->getData(['core', 'dataVersion']) < 13000) { $this->deleteDir('core/module/translate'); } + // Renomme le fichier et le dossier des fontes + if (file_exists(self::DATA_DIR . 'fonts/fonts.html')) { + rename(self::DATA_DIR . 'fonts/fonts.html', self::DATA_DIR . 'fonts/font.html'); + } + if (is_dir(self::DATA_DIR . 'fonts')) { + rename(self::DATA_DIR . 'fonts', self::DATA_DIR . 'font'); + } + + // Ajouter le prénom comme pseudo et le pseudo comme signature foreach ($this->getData(['user']) as $userId => $userIds) { switch ($this->getData(['user', $userId, 'group'])) {