diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 9c3553c..c1641a6 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -840,10 +840,11 @@ class theme extends common // Effacer le fichier existant if ( - $this->getUrl(2) === 'file' && - file_exists(self::DATA_DIR . $this->getUrl(2)) + $this->getUrl(2) === 'files' && + file_exists($this->getData(['font', 'files', $this->getUrl(3), 'resource'])) ) { - unlink(self::DATA_DIR . $this->getUrl(2)); + + unlink($this->getData(['font', 'files', $this->getUrl(3), 'resource'])); } // Valeurs en sortie @@ -855,7 +856,6 @@ class theme extends common } } - /** * Réinitialisation de la personnalisation avancée */