diff --git a/inc/verifier_taille_document_acceptable.php b/inc/verifier_taille_document_acceptable.php index 9a4f46ce7e852ce7615c5660c3b393012c5bd0d5..22f7f3973e173ab5e884bab7b239cdc142dea12e 100644 --- a/inc/verifier_taille_document_acceptable.php +++ b/inc/verifier_taille_document_acceptable.php @@ -60,10 +60,10 @@ function inc_verifier_taille_document_acceptable_dist(&$infos, $is_logo = false) } if ($is_logo) { - $max_size = (defined('_IMG_MAX_SIZE') and _IMG_MAX_SIZE) ? _IMG_MAX_SIZE : null; + $max_size = (defined('_LOGO_MAX_SIZE') and _LOGO_MAX_SIZE) ? _LOGO_MAX_SIZE : null; } else { - $max_size = (defined('_LOGO_MAX_SIZE') and _LOGO_MAX_SIZE) ? _LOGO_MAX_SIZE : null; + $max_size = (defined('_IMG_MAX_SIZE') and _IMG_MAX_SIZE) ? _IMG_MAX_SIZE : null; } $res = medias_verifier_poids_fichier($infos, $max_size, true);