فهرست منبع

correction sur gestion des images MJ et jeux (ajout de webp dans gitignore)

garthh 2 روز پیش
والد
کامیت
dfbc154df0
2فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. BIN
      public/images/gamemasters/mj-de-poche.webp
  2. 1 1
      src/Controller/Admin/GamemasterController.php

BIN
public/images/gamemasters/mj-de-poche.webp


+ 1 - 1
src/Controller/Admin/GamemasterController.php

@@ -56,7 +56,7 @@ final class GamemasterController extends AbstractController
     {
         // Effacer toutes images associée
         if ($gamemaster->getPicture()) {
-            $fullPath = $params->get('upload_images_directory') . '/games/' . $gamemaster->getPicture();
+            $fullPath = $params->get('upload_images_directory') . '/gamemasters/' . $gamemaster->getPicture();
             unlink($fullPath);
         }
         $gamemaster->setPicture(null);