Commit 7a435271 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

UploadedFile: correction du changement de chemin quand on passe de l'état orphelin à normal.

Showing with 1 addition and 1 deletion
+1 -1
...@@ -289,7 +289,7 @@ class UploadedFile implements UploadedFileInterface ...@@ -289,7 +289,7 @@ class UploadedFile implements UploadedFileInterface
// Déplace le fichier hors de l'orphelinat quand on passe d'orphelin à nouveau // Déplace le fichier hors de l'orphelinat quand on passe d'orphelin à nouveau
if($this->etat === self::ETAT_ORPHELIN && $etat === self::ETAT_NORMAL && 0 === strpos($this->path, self::ORPHAN_PREFIX)) { if($this->etat === self::ETAT_ORPHELIN && $etat === self::ETAT_NORMAL && 0 === strpos($this->path, self::ORPHAN_PREFIX)) {
$this->path = substr($this->path, strlen($this->path)); $this->path = substr($this->path, strlen(self::ORPHAN_PREFIX));
} }
$this->etat = $etat; $this->etat = $etat;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment