XPressME Integration Kit

Trac

Changeset 483 for trunk


Ignore:
Timestamp:
Dec 11, 2009, 2:40:54 PM (15 years ago)
Author:
toemon
Message:

r482 の修正で常にキャッシュを見に行くようになってしまった部分を修正 Fixes#266

File:
1 edited

Legend:

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

    r482 r483  
    181181                $blockID =get_block_id($mydirname,$func_file,$options);          
    182182 
    183                 if (function_exists('get_option')) 
    184                         $this_url = str_replace( $xoops_config->xoops_url , '' , get_option('home')); 
    185                 else 
    186                         $this_url = $mydirname; 
    187  
     183                $this_block_url = '/' . $mydirname . '/'; 
    188184                $call_url = $_SERVER['REQUEST_URI']; 
     185                 
    189186                xpress_block_css_set($mydirname); 
    190                 if (strcmp($call_url,$this_url)==0){ 
     187                if (strstr($call_url , $this_block_url) !== false){ 
    191188                        $block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name); 
    192189                        require_once $block_theme_file['file_path']; 
Note: See TracChangeset for help on using the changeset viewer.