Index: /trunk/xpressme_integration_kit/include/xpress_block_render.php
===================================================================
--- /trunk/xpressme_integration_kit/include/xpress_block_render.php	(revision 482)
+++ /trunk/xpressme_integration_kit/include/xpress_block_render.php	(revision 483)
@@ -181,12 +181,9 @@
 		$blockID =get_block_id($mydirname,$func_file,$options);		
 
-		if (function_exists('get_option'))
-			$this_url = str_replace( $xoops_config->xoops_url , '' , get_option('home'));
-		else
-			$this_url = $mydirname;
-
+		$this_block_url = '/' . $mydirname . '/';
 		$call_url = $_SERVER['REQUEST_URI'];
+		
 		xpress_block_css_set($mydirname);
-		if (strcmp($call_url,$this_url)==0){
+		if (strstr($call_url , $this_block_url) !== false){
 			$block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name);
 			require_once $block_theme_file['file_path'];
