XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 15, 2009, 9:49:48 PM (16 years ago)
Author:
toemon
Message:

SQLデバッグONにしたときheaderを読み込まないバグ修正 fixes #149

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/xpress_render.php

    r272 r278  
    55{ 
    66        global $xpress_config; 
     7         
     8        $pattern = "<body[^>]*?>(.*)<\/body>"; 
     9        $body_cut = preg_replace("/".$pattern."/s" , '' , $contents); 
     10 
     11 
    712        $pattern = "<head[^>]*?>(.*)<\/head>"; 
    8         preg_match("/".$pattern."/s",  $contents, $head_matches); 
     13        preg_match("/".$pattern."/s",  $body_cut, $head_matches); 
    914        $head_str = $head_matches[1]; 
    1015         
Note: See TracChangeset for help on using the changeset viewer.