- Timestamp:
- Jul 23, 2009, 12:55:34 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_render.php
r317 r343 148 148 function xpress_render($contents){ 149 149 global $xoops_config , $xoopsTpl,$xpress_config; 150 global $xoopsUser; 151 150 152 xpress_remake_global_for_permlink(); 151 153 $mydirname = basename(dirname(dirname(__FILE__))); … … 218 220 $xpress_data['now_user_level'] = xpress_now_user_level('echo=0'); 219 221 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 220 227 $xoopsTpl->assign('xpress', $xpress_data); 221 228 $templates_file = 'db:'.$mydirname. '_index.html'; -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php
r132 r343 49 49 } 50 50 // 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 } 55 61 } 56 62
Note: See TracChangeset
for help on using the changeset viewer.