XPressME Integration Kit

Trac

Changeset 482 for trunk


Ignore:
Timestamp:
Dec 8, 2009, 8:41:15 AM (15 years ago)
Author:
toemon
Message:

モジュール複製時のブロック配置でFatal errorが発生するバグ修正 Fixes #266

File:
1 edited

Legend:

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

    r480 r482  
    188188                $call_url = $_SERVER['REQUEST_URI']; 
    189189                xpress_block_css_set($mydirname); 
    190                 if (strstr($call_url,$this_url)){        
     190                if (strcmp($call_url,$this_url)==0){ 
    191191                        $block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name); 
    192192                        require_once $block_theme_file['file_path']; 
     
    315315        if ($dh = opendir($cache_dir)) { 
    316316            while (($file = readdir($dh)) !== false) { 
    317                 if (preg_match('/^' . preg_quote($mydirname) . '/', $file)) { 
     317                if (preg_match('/^' . preg_quote($mydirname) . '_/', $file)) { 
    318318                        if(! preg_match('/' . $pattern . '/', $file)) { 
    319319                        unlink($cache_dir.$file); 
Note: See TracChangeset for help on using the changeset viewer.