XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 6, 2009, 5:16:22 PM (15 years ago)
Author:
toemon
Message:

途中経過でインストール、アップデートできなくなってしまっていたバグ修正
イベント通知の部分をFix、(ゲストのモジュールアクセス権限がないと通知できないのは直らない)
ブロックのキャッシュを見直し、キャッシュがない場合と、ブロックオプションが変更された場合にリフレッシュする機能を追加
ブロックキャッシュの更新にてポスト削除時のイベントをDB削除前にとっていたバグを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_render.php

    r61 r96  
    1010        $pattern = "<style[^>]*?>(.*)<\/style>"; 
    1111        preg_match("/".$pattern."/s",  $head_str, $style_matches); 
    12         $style = $style_matches[0]; 
     12        if (empty($style_matches[0])) 
     13                $style = ''; 
     14        else 
     15                $style = $style_matches[0]; 
    1316  
    1417        $pattern = "<link(.*)>"; 
     
    9598//rendering for the module header and the body 
    9699function xpress_render($contents){ 
    97         global $xoopsTpl; 
    98         include XOOPS_ROOT_PATH."/header.php"; 
    99         $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('&raquo;', false);    
     100        global $xoops_config , $xoopsTpl; 
     101        include $xoops_config->xoops_root_path ."/header.php"; 
     102        $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('&raquo;', false); 
    100103        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
    101104        $xoopsTpl->assign('xoops_pagetitle', $page_title); 
    102105        $xoopsTpl->assign('xpress_body_contents', get_body($contents)); 
    103106        echo get_body($contents); 
     107        require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 
     108        include $xoops_config->xoops_root_path . '/footer.php'; 
    104109} 
    105110 
Note: See TracChangeset for help on using the changeset viewer.