XPressME Integration Kit

Trac


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php

    r746 r749  
    8888        } 
    8989        function __construct() { 
     90                global $xoopsDB; 
    9091                $this->mod_dirpath = dirname(dirname(__FILE__)); 
    9192                $this->mod_name = basename(dirname(dirname(__FILE__))); 
     
    9495                $this->xoops_Lang = @$GLOBALS["xoopsConfig"]['language']; 
    9596                $this->php_version    = phpversion(); 
    96                 $xoopsDB =& Database::getInstance(); 
    9797                list($SV) = $xoopsDB->fetchRow($xoopsDB->query('SELECT version()')); 
    9898                $this->mysql_version = $SV; 
     
    147147 
    148148        function is_wpdb_installed(){ 
     149                global $xoopsDB; 
    149150                $prefix_mod = XOOPS_DB_PREFIX .'_' . preg_replace('/wordpress/','wp',$this->mod_name) . '_'; 
    150                 $xoopsDB =& Database::getInstance(); 
    151151                $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 
    152152                if ($result = $xoopsDB->queryf($sql)){ 
Note: See TracChangeset for help on using the changeset viewer.