XPressME Integration Kit

Trac

Changeset 98


Ignore:
Timestamp:
Mar 6, 2009, 10:57:55 PM (15 years ago)
Author:
toemon
Message:

ブロックをモジュール外に配置したとき、ブロックが使用する$xoops_configオブジェクトが生成されていないバグを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_block_render.php

    r97 r98  
    22        require_once dirname( __FILE__ ) .'/xml.php' ; 
    33        require_once dirname( __FILE__ ) .'/xpress_cache.php' ; 
     4        global $xoops_config; 
     5         
     6        if (!is_object($xoops_config)){ // is call other modules 
     7                require_once dirname( __FILE__ ) .'/config_from_xoops.class.php' ; 
     8                $xoops_config = new ConfigFromXoops; 
     9        } 
    410         
    511        function xpress_block_cache_write($mydirname,$block_name,$block) 
Note: See TracChangeset for help on using the changeset viewer.