Changeset 118023 in spip-zone


Ignore:
Timestamp:
Oct 3, 2019, 6:20:50 AM (5 months ago)
Author:
arno@…
Message:

mime_content_type n’est pas actif sur tous les serveurs => bug sur le preg_match

Location:
_plugins_/image_responsive
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/image_responsive/image_responsive_fonctions.php

    r117990 r118023  
    103103                // mime_content_type ne fonctionn pas sur certaines versions de PHP…
    104104                // $mime = mime_content_type($source);
    105                 if (preg_match("png$", $source)) $mime = "image/png";
    106                 else if (preg_match("gif$", $source)) $mime = "image/gif";
     105                if (preg_match("/png$/", $source)) $mime = "image/png";
     106                else if (preg_match("/gif$/", $source)) $mime = "image/gif";
    107107                $mime = "image/jpeg";
    108108               
  • _plugins_/image_responsive/paquet.xml

    r117990 r118023  
    22        prefix="image_responsive"
    33        categorie="multimedia"
    4         version="7.7.9"
     4        version="7.7.10"
    55        etat="stable"
    66        logo="prive/themes/spip/images/image_responsive.png"
Note: See TracChangeset for help on using the changeset viewer.