diff --git a/classes/MiniatureObject.class.php b/classes/MiniatureObject.class.php index 46e840c..ff222b2 100644 --- a/classes/MiniatureObject.class.php +++ b/classes/MiniatureObject.class.php @@ -127,9 +127,7 @@ public function supprimer(): void && $this->getNbUsages() === 0 //&& file_exists($this->getPathMd5()) ) { - global $msgErreur; - $msgErreur = $this->getNomNouveau(); - unlink($this->getPathMd5()); + unlink($this->getPathMd5().$this->getNomNouveau()); } }