XPressME Integration Kit

Trac

Changeset 172


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

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

Location:
trunk
Files:
3 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?> 
  • trunk/wp-config.php

    r171 r172  
    101101        // This Function in xpressme plugin 
    102102        require_once( ABSPATH .'/include/xpress_block_render.php' );     
    103         xpress_unnecessary_block_cache_delete(); 
    104         if (is_home()) xpress_block_cache_refresh(); 
     103        xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
     104        if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    105105        exit();         // The return to wp-blog-header.php is stolen here 
    106106} 
  • trunk/xoops_version.php

    r170 r172  
    3131$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    33 $modversion['version'] = "0.30"; 
     33$modversion['version'] = "0.31"; 
    3434$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
     
    4040 
    4141// status 
    42 $modversion['codename'] = "r170"; 
     42$modversion['codename'] = "r172"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.