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/include/wp_check.php

    r744 r749  
    11<?php 
    22        function is_wpdb_installed(){ 
     3                global $xoopsDB; 
    34                $mydirname = basename(dirname( dirname( __FILE__ ) )) ; 
    4                 $prefix_mod = XOOPS_DB_PREFIX .'_' . preg_replace('/wordpress/','wp',$mydirname) . '_'; 
    5                 $xoopsDB =& Database::getInstance(); 
     5                 
     6                $prefix_mod = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 
    67                $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 
    78                if ($result = $xoopsDB->queryf($sql)){ 
Note: See TracChangeset for help on using the changeset viewer.