XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 23, 2011, 3:03:57 PM (14 years ago)
Author:
toemon
Message:

ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止

File:
1 edited

Legend:

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

    r754 r757  
    182182//rendering for the module header and the body 
    183183function xpress_render($contents){ 
    184         global $xoops_config; 
     184        global $modInfo; 
    185185        global $xoopsUser , $xoopsTpl,$xpress_config , $xoopsModule , $xoopsLogger, $xoopsConfig ; //for XOOPS 
    186186         
     
    190190        xpress_remake_global_for_permlink(); 
    191191        $mydirname = basename(dirname(dirname(__FILE__))); 
    192         include $xoops_config->xoops_root_path ."/header.php"; 
     192        include $modInfo->get_xoops_header_path(); 
    193193        $xoopsTpl->assign('xoops_breadcrumbs', $xoops_breadcrumbs); 
    194194        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
     
    265265        //If notification_select.php is not executed in CMS other than XCL, the selector of in-line is not displayed.  
    266266        if (is_object($xoopsModule) && $xoopsModule->getVar('hasnotification') == 1 && is_object($xoopsUser)) { 
    267                 require_once $xoops_config->xoops_root_path . '/include/notification_select.php'; 
     267                require_once $modInfo->get_xoops_root_path() . '/include/notification_select.php'; 
    268268        } 
    269269         
     
    272272        $xoopsTpl->clear_cache($templates_file); 
    273273        echo $xoopsTpl->fetch( $templates_file ) ; 
    274         include $xoops_config->xoops_root_path . '/footer.php'; 
     274        include $modInfo->get_xoops_footer_path(); 
    275275} 
    276276 
Note: See TracChangeset for help on using the changeset viewer.