Fiabilise les médias et la navigation mobile
This commit is contained in:
parent
465b384c08
commit
5909f55aba
12 changed files with 266 additions and 19 deletions
|
|
@ -191,10 +191,7 @@ final class AnimalsController
|
|||
|
||||
private static function ensureAnimalMediaDir(int $animalId): void
|
||||
{
|
||||
$dir = self::animalMediaDir($animalId);
|
||||
if (!is_dir($dir)) {
|
||||
mkdir($dir, 0775, true);
|
||||
}
|
||||
PrivateMediaService::ensure(self::animalMediaDir($animalId), true);
|
||||
}
|
||||
|
||||
private static function safeFilename(string $name): string
|
||||
|
|
|
|||
Loading…
Reference in a new issue