Skip to content
Extraits de code Groupes Projets
Valider e535e840 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

utiliser la fonction formats_image_acceptables()

parent 8271d1e5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1182,8 +1182,7 @@ function recuperer_infos_distantes($source, $max = 0, $charger_si_petite_image = ...@@ -1182,8 +1182,7 @@ function recuperer_infos_distantes($source, $max = 0, $charger_si_petite_image =
if (preg_match(',^image/(jpeg|gif|png|swf|svg),', $mime_type)) { if (preg_match(',^image/(jpeg|gif|png|swf|svg),', $mime_type)) {
if ($max == 0 if ($max == 0
and (empty($a['taille']) or $a['taille'] < _INC_DISTANT_MAX_SIZE) and (empty($a['taille']) or $a['taille'] < _INC_DISTANT_MAX_SIZE)
and isset($GLOBALS['meta']['formats_graphiques']) and in_array($a['extension'], formats_image_acceptables())
and (strpos($GLOBALS['meta']['formats_graphiques'], $a['extension']) !== false)
and $charger_si_petite_image and $charger_si_petite_image
) { ) {
$a = recuperer_infos_distantes($source, _INC_DISTANT_MAX_SIZE); $a = recuperer_infos_distantes($source, _INC_DISTANT_MAX_SIZE);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter