XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 19, 2011, 6:47:15 PM (14 years ago)
Author:
toemon
Message:

Database::getInstance()を使わずに、global $xoopsDB を使用する。(xoops3対策)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/blocks/widget_block.php

    r583 r749  
    1717        function _b_widget_edit($options) 
    1818        { 
     19                global $xoopsDB; 
    1920                $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    2021                $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_widget_block.html' : trim( $options[1] ); 
     
    2425                $selected = explode(',' , $widget_select); 
    2526                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname) . '_'; 
    26                 $xoopsDB =& Database::getInstance(); 
    2727                $myts =& MyTextSanitizer::getInstance(); 
    2828 
Note: See TracChangeset for help on using the changeset viewer.