Index: trunk/xpressme_integration_kit/include/xpress_render.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_render.php	(revision 844)
+++ trunk/xpressme_integration_kit/include/xpress_render.php	(revision 848)
@@ -1,9 +1,9 @@
 <?php
 
-//< style >< script >< link > tag is pulled out from the header of html contents. 
+//< style >< script >< link > tag is pulled out from the header of html contents.
 function get_mod_header($contents)
 {
 	global $xpress_config;
-	
+
 	$pattern = "<body[^>]*?>(.*)<\/body>";
 	$body_cut = preg_replace("/".$pattern."/s" , '' , $contents);
@@ -36,5 +36,5 @@
 	$head_str = meta_name_cut('generator',$head_str);
 
-	$head_str = preg_replace("/^(\s)*(\r|\n|\r\n)/m", "", $head_str);	
+	$head_str = preg_replace("/^(\s)*(\r|\n|\r\n)/m", "", $head_str);
 	$pattern = "^";
 	$head_str = preg_replace("/".$pattern."/m" , "\t" , $head_str);
@@ -71,5 +71,5 @@
 }
 
-// get sidebar rendaring 
+// get sidebar rendaring
 function get_sidebar_rander($name = null)
 {
@@ -93,5 +93,5 @@
 }
 
-// < body > tag is pulled out from the header of html contents. 
+// < body > tag is pulled out from the header of html contents.
 function get_body($contents)
 {
@@ -103,5 +103,5 @@
 		$body = $body_matches[1];
 	}
-	
+
 	if ($xpess_config->is_theme_sidebar_disp){
 		$xpress_class = 'xpress-body';
@@ -109,5 +109,5 @@
 		$xpress_class = 'xpress-body onecolumn';
 	}
-	
+
 	$pattern = '<body\s*([^>]*)>';
 	$body_class = 'class="' . $xpress_class . '"';
@@ -115,5 +115,5 @@
 		$body_tag_option = $body_matches[1];
 
-		$pattern = 'class\s*=\s*[\'|"]([^\'|^"]*)[\'|"]';		
+		$pattern = 'class\s*=\s*[\'|"]([^\'|^"]*)[\'|"]';
 		if(preg_match("/".$pattern."/",  $body_tag_option, $class_matches)){
 			$class_value = $class_matches[1];
@@ -142,5 +142,5 @@
 		$preload_make_module_header = '';
 	}
-	
+
 	if (! empty($preload_make_module_header)){
 	$preload_make_module_header = '<!-- preload added module header -->
@@ -148,5 +148,5 @@
 ';
 	}
-	
+
 	$wp_module_header = '<!-- wordpress  added module header -->
 ' . get_mod_header($contents) . '
@@ -193,10 +193,10 @@
     		$xoTheme->addMeta('meta', $meta_key, $meta_word);
 		}
-		$xoopsTpl->assign('xoops_meta_'.  $meta_key, $meta_word);				
-	}	
+		$xoopsTpl->assign('xoops_meta_'.  $meta_key, $meta_word);
+	}
 }
 function xpress_get_xoops_meta($meta_key){
 	global $xoopsTpl,$xoTheme; //for XOOPS
-	
+
 	if (defined('LEGACY_MODULE_VERSION') && version_compare(LEGACY_MODULE_VERSION, '2.2', '>=')) {
     		// For XCL 2.2
@@ -213,5 +213,5 @@
 	return $ret;
 }
-	
+
 
 //rendering for the module header and the body
@@ -219,5 +219,5 @@
 	global $xoops_config;
 	global $xoopsUser , $xoopsTpl,$xpress_config , $xoopsModule , $xoopsLogger, $xoopsConfig ; //for XOOPS
-	
+
 	//disable cache
 	$xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0;
@@ -228,4 +228,9 @@
 	xpress_remake_global_for_permlink();
 	$mydirname = basename(dirname(dirname(__FILE__)));
+	if (defined('LEGACY_BASE_VERSION') && version_compare(LEGACY_BASE_VERSION, '2.2.1.1', '>=')) {
+		$module_handler =& xoops_gethandler('module');
+		$thisModule =& $module_handler->getByDirname($mydirname);
+		$thisModule->modinfo = null;
+	}
 	include $xoops_config->xoops_root_path ."/header.php";
 	$xoopsTpl->assign('xoops_breadcrumbs', $xoops_breadcrumbs);
@@ -233,7 +238,7 @@
 	$page_title = $GLOBALS["xoopsModule"]->getVar("name"). ' &raquo;'. get_xpress_title($contents);
 	$xoopsTpl->assign('xoops_pagetitle', $page_title);
-	
+
 	$xoops_keywords =  xpress_get_xoops_meta('keywords');
-	
+
 	$wp_keyword = get_xpress_meta_name('keywords',$contents);
 	switch ($xpress_config->meta_keyword_type){
@@ -253,5 +258,5 @@
 				}
 				xpress_meta_assign('keywords', $keywords);
-			} 
+			}
 			break;
 		default :
@@ -277,5 +282,5 @@
 				}
 				xpress_meta_assign('description', $description);
-			} 
+			}
 			break;
 		default :
@@ -305,9 +310,9 @@
 	$xpress_data['now_user_level'] = xpress_now_user_level('echo=0');
 
-	//If notification_select.php is not executed in CMS other than XCL, the selector of in-line is not displayed. 
+	//If notification_select.php is not executed in CMS other than XCL, the selector of in-line is not displayed.
 	if (is_object($xoopsModule) && $xoopsModule->getVar('hasnotification') == 1 && is_object($xoopsUser)) {
 		require_once $xoops_config->xoops_root_path . '/include/notification_select.php';
 	}
-	
+
 	$xoopsTpl->assign('xpress', $xpress_data);
 	$templates_file = 'db:'.$mydirname. '_index.html';
