dimensions demandées pour l'image de la bannière "à propos" plus cohérente
This commit is contained in:
parent
a15d2260d1
commit
fd134917f0
@ -66,7 +66,7 @@ class SiteUploadHandler {
|
|||||||
// Vérifier les dimensions de l'image
|
// Vérifier les dimensions de l'image
|
||||||
list($width, $height) = getimagesize($file['tmp_name']);
|
list($width, $height) = getimagesize($file['tmp_name']);
|
||||||
$minWidth = 1200;
|
$minWidth = 1200;
|
||||||
$minHeight = 600;
|
$minHeight = 250;
|
||||||
|
|
||||||
if ($width < $minWidth || $height < $minHeight) {
|
if ($width < $minWidth || $height < $minHeight) {
|
||||||
throw new Exception("L'image doit faire au moins {$minWidth}x{$minHeight} pixels");
|
throw new Exception("L'image doit faire au moins {$minWidth}x{$minHeight} pixels");
|
||||||
|
@ -1 +1 @@
|
|||||||
1.1.1
|
1.1.2
|
Loading…
x
Reference in New Issue
Block a user