forked from ZwiiCMS-Team/ZwiiCMS
Bug fonte delete
This commit is contained in:
parent
22e0b71012
commit
c6ae372429
@ -840,10 +840,11 @@ class theme extends common
|
|||||||
|
|
||||||
// Effacer le fichier existant
|
// Effacer le fichier existant
|
||||||
if (
|
if (
|
||||||
$this->getUrl(2) === 'file' &&
|
$this->getUrl(2) === 'files' &&
|
||||||
file_exists(self::DATA_DIR . $this->getUrl(2))
|
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
|
// Valeurs en sortie
|
||||||
|
Loading…
Reference in New Issue
Block a user