Index: /trunk/include/xpress_block_render.php
===================================================================
--- /trunk/include/xpress_block_render.php	(revision 97)
+++ /trunk/include/xpress_block_render.php	(revision 98)
@@ -2,4 +2,10 @@
 	require_once dirname( __FILE__ ) .'/xml.php' ;
 	require_once dirname( __FILE__ ) .'/xpress_cache.php' ;
+	global $xoops_config;
+	
+	if (!is_object($xoops_config)){ // is call other modules
+		require_once dirname( __FILE__ ) .'/config_from_xoops.class.php' ;
+		$xoops_config = new ConfigFromXoops;
+	}
 	
 	function xpress_block_cache_write($mydirname,$block_name,$block)
