Changeset 82056 in spip-zone


Ignore:
Timestamp:
Apr 22, 2014, 8:16:45 AM (5 years ago)
Author:
cedric@…
Message:

bugfix sur la reorganisation des style inlines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/adaptive_images/trunk/lib/AdaptiveImages/AdaptiveImages.php

    r81715 r82056  
    33 * AdaptiveImages
    44 *
    5  * @version    1.7.1
     5 * @version    1.7.2
    66 * @copyright  2013
    77 * @author     Nursit
     
    309309                        $ins_style = "";
    310310                        // collect all adapt-img <style> in order to put it in the <head>
    311                         preg_match_all(",<!--\[if !IE\]><!-->.*<style[^>]*>(.*)</style>.*<!--<!\[endif\]-->,Ums",$html,$matches);
    312                         if (count($matches[1])){
     311                        preg_match_all(",<!--\[if !IE\]><!-->.*(<style[^>]*>(.*)</style>).*<!--<!\[endif\]-->,Ums",$html,$matches);
     312                        if (count($matches[2])){
    313313                                $html = str_replace($matches[1],"",$html);
    314                                 $ins_style .= "\n<style>".implode("\n",$matches[1])."\n</style>";
     314                                $ins_style .= "\n<style>".implode("\n",$matches[2])."\n</style>";
    315315                        }
    316316
Note: See TracChangeset for help on using the changeset viewer.