From 0c763912666940e063fab41d2eb22b8adfbad279 Mon Sep 17 00:00:00 2001 From: Anael MOBILIA Date: Tue, 8 Oct 2024 02:47:12 +0200 Subject: [PATCH] aa --- classes/MiniatureObject.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()); } }