Bug fonte delete

This commit is contained in:
Fred Tempez 2024-01-06 09:26:40 +01:00
parent 22e0b71012
commit c6ae372429
1 changed files with 4 additions and 3 deletions

View File

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