XPressME Integration Kit

Trac


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.0/xpressme_integration_kit/include/xpress_render.php

    r232 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         
     
    208213        $xpress_data['left_post_link'] = $GLOBALS['left_arrow_post_link']; 
    209214        $xpress_data['right_post_link'] = $GLOBALS['right_arrow_post_link']; 
    210         $xpress_data['left_posts_link'] =  str_replace('&laquo;','',xpress_left_arrow_posts_link(false)); 
    211         $xpress_data['right_posts_link'] = str_replace('&raquo;','',xpress_right_arrow_posts_link(false)); 
    212         $xpress_data['now_user_level'] = xpress_now_user_level(false); 
     215        $xpress_data['left_posts_link'] =  str_replace('&laquo;','',xpress_left_arrow_posts_link('echo=0')); 
     216        $xpress_data['right_posts_link'] = str_replace('&raquo;','',xpress_right_arrow_posts_link('echo=0')); 
     217        $xpress_data['now_user_level'] = xpress_now_user_level('echo=0'); 
    213218 
    214219        $xoopsTpl->assign('xpress', $xpress_data); 
Note: See TracChangeset for help on using the changeset viewer.