XPressME Integration Kit

Trac

Changeset 343


Ignore:
Timestamp:
Jul 23, 2009, 12:55:34 PM (15 years ago)
Author:
toemon
Message:

Impress CMSでインラインに表示されるイベント選択が表示されない バグ修正 fixes #186

Location:
trunk/xpressme_integration_kit
Files:
2 edited

Legend:

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

    r317 r343  
    148148function xpress_render($contents){ 
    149149        global $xoops_config , $xoopsTpl,$xpress_config; 
     150        global $xoopsUser; 
     151 
    150152        xpress_remake_global_for_permlink(); 
    151153        $mydirname = basename(dirname(dirname(__FILE__))); 
     
    218220        $xpress_data['now_user_level'] = xpress_now_user_level('echo=0'); 
    219221 
     222        //If notification_select.php is not executed in CMS other than XCL, the selector of in-line is not displayed.  
     223        if (is_object($xoopsModule) && $xoopsModule->getVar('hasnotification') == 1 && is_object($xoopsUser)) { 
     224                require_once $xoops_config->xoops_root_path . '/include/notification_select.php'; 
     225        } 
     226         
    220227        $xoopsTpl->assign('xpress', $xpress_data); 
    221228        $templates_file = 'db:'.$mydirname. '_index.html'; 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php

    r132 r343  
    4949        } 
    5050//      set_error_handler("xpress_error_handler"); 
    51         require_once $xoops_config->xoops_mainfile_path;        // load XOOPS System 
    52         $module_id = get_xpress_modid() ; 
    53         $notification_handler =& xoops_gethandler( 'notification' ) ; 
    54         $notification_handler->triggerEvent($category, $item_id, $event, $extra_tags, $user_list, $module_id, $omit_user_id); 
     51        if ($xoops_config->is_impress != true){  // impress cms is error 
     52                if ( !defined("XOOPS_MAINFILE_INCLUDED")) { 
     53                        require_once $xoops_config->xoops_mainfile_path;        // load XOOPS System 
     54                } 
     55        } 
     56        if ( defined("XOOPS_MAINFILE_INCLUDED")) { 
     57                $module_id = get_xpress_modid() ; 
     58                $notification_handler =& xoops_gethandler( 'notification' ) ; 
     59                $notification_handler->triggerEvent($category, $item_id, $event, $extra_tags, $user_list, $module_id, $omit_user_id); 
     60        } 
    5561} 
    5662 
Note: See TracChangeset for help on using the changeset viewer.