From 4734b847b0700c81ab6f2813692bbf8bc41eb63a Mon Sep 17 00:00:00 2001
From: b_b <bruno@eliaz.fr>
Date: Tue, 17 Jan 2023 17:18:55 +0100
Subject: [PATCH] fix: correction d'une inversion entre taille des images et
 des logos dans le test des tailles acceptables

retour sur 9c937cb8a5bced478ec8c0adcbe6a74199e40ddb

Fix: #4919
---
 inc/verifier_taille_document_acceptable.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/verifier_taille_document_acceptable.php b/inc/verifier_taille_document_acceptable.php
index 9a4f46ce..22f7f397 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);
-- 
GitLab