XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 10, 2009, 2:40:40 AM (16 years ago)
Author:
toemon
Message:

Bump Ver0.31 #102 モジュールを複製使用したときinclude\xpress_block_render.phpないの関数群でCannot redeclareが発生するバグ修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_block_render.php

    r165 r172  
    11<?php 
     2if(!defined('XPRESS_BLOCK_RENDER_FUNCTION_READ')){ 
     3        define('XPRESS_BLOCK_RENDER_FUNCTION_READ',1); 
    24        require_once dirname( __FILE__ ) .'/xml.php' ; 
    35        require_once dirname( __FILE__ ) .'/xpress_cache.php' ; 
     
    190192        } 
    191193         
    192         function xpress_block_cache_refresh() 
     194        function xpress_block_cache_refresh($mydirname) 
    193195        { 
    194196                global $xoops_db; 
     
    196198                $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1"; 
    197199                $blocks = $xoops_db->get_results($sql); 
    198                 $mydirname = get_xpress_dir_name(); 
    199200                require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 
    200201 
     
    228229        } 
    229230         
    230         function xpress_unnecessary_block_cache_delete() 
     231        function xpress_unnecessary_block_cache_delete($mydirname) 
    231232        { 
    232233                global $xoops_db,$xoops_config; 
     
    234235                $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1"; 
    235236                $blocks = $xoops_db->get_results($sql); 
    236                 $mydirname = get_xpress_dir_name(); 
    237237                require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 
    238238 
     
    258258        }  
    259259    }  
    260          
     260}        
    261261?> 
Note: See TracChangeset for help on using the changeset viewer.