From aee11cb2370e8b0063e3a154229aecb8f5fc5867 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 27 Aug 2023 18:14:42 +0200 Subject: [PATCH] Renomme le fichier et le dossier fonts dans data --- core/include/update.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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'])) {