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/block_common.php

    r583 r749  
    2121function categorie_select($option_name = '',$value='',$row_num=0 ,$sort_column = 'ID', $sort_order = 'asc') 
    2222{ 
     23        global $xoopsDB; 
    2324    $mydirpath = dirname(dirname(__FILE__)); 
    2425        $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
    2526        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname) . '_'; 
    26         $xoopsDB =& Database::getInstance(); 
    2727        $myts =& MyTextSanitizer::getInstance(); 
    2828    $selected = explode(',' , $value); 
Note: See TracChangeset for help on using the changeset viewer.