From 6f11372668447d53fb992c7164ec024a239712a8 Mon Sep 17 00:00:00 2001 From: Cassandre Cantet Date: Fri, 27 Oct 2017 13:19:11 +0200 Subject: [PATCH] Modifs chemin path en md5. --- src/Model/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Image.php b/src/Model/Image.php index 726b422..4664286 100755 --- a/src/Model/Image.php +++ b/src/Model/Image.php @@ -83,7 +83,7 @@ class Image extends Model if (empty($basePath)) { throw new \Exception('You must defined config image.path'); } - $parts = array_slice(str_split(mb_strtolower(str_slug($filename, '')), 2), 0, 2); + $parts = array_slice(str_split(md5($filename), 2), 0, 2); $path = $basePath . '/' . implode('/', $parts) . '/' . $filename; return $path;