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/class/modInfo_class.php

    r747 r749  
    133133     
    134134        function is_wpdb_installed(){ 
     135                global $xoopsDB; 
    135136                $mydirname = basename(dirname( dirname( __FILE__ ) )) ; 
    136137                $prefix_mod = XOOPS_DB_PREFIX .'_' . preg_replace('/wordpress/','wp',$mydirname) . '_'; 
    137                 $xoopsDB =& Database::getInstance(); 
    138138                $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 
    139139                if ($result = $xoopsDB->queryf($sql)){ 
Note: See TracChangeset for help on using the changeset viewer.