XPressME Integration Kit

Trac

Changeset 456


Ignore:
Timestamp:
Nov 24, 2009, 4:18:56 PM (15 years ago)
Author:
toemon
Message:

XOOPS側でのRewriteRule 適応時のブロック更新が行われないバグ修正r455ではモジュール外に配置したブロックでFatal error: Call to undefined function get_option()が発生するバグ修正 Fixes #250

File:
1 edited

Legend:

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

    r455 r456  
    167167                $blockID =get_block_id($mydirname,$func_file,$options);          
    168168 
    169                 $this_url = str_replace( $xoops_config->xoops_url , '' , get_option('home')); 
     169                if (function_exists('get_option')) 
     170                        $this_url = str_replace( $xoops_config->xoops_url , '' , get_option('home')); 
     171                else 
     172                        $this_url = $mydirname; 
     173 
    170174                $call_url = $_SERVER['REQUEST_URI']; 
    171175                xpress_block_css_set($mydirname); 
Note: See TracChangeset for help on using the changeset viewer.