XPressME Integration Kit

Trac

Changeset 751 for branches/Ver3.0


Ignore:
Timestamp:
May 20, 2011, 8:34:33 AM (14 years ago)
Author:
toemon
Message:

r749 Database::getInstance()を使わずに、global $xoopsDB を使用する。(xoops3対策)の処置忘れ部分修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/include/onuninstall.php

    r749 r751  
    3636        $prefix_mod = $xoops_prefix  . '_' . $xp_prefix; 
    3737        $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 
    38         if ($result = $db->query($sql)) { 
    39                 while ($table = $db->fetchRow($result)){ 
     38        if ($result = $xoopsDB->query($sql)) { 
     39                while ($table = $xoopsDB->fetchRow($result)){ 
    4040                        $drop_sql = 'DROP TABLE '. $table[0] ; 
    41                         if (!$db->queryF($drop_sql)) { 
     41                        if (!$xoopsDB->queryF($drop_sql)) { 
    4242                                $ret[] = '<span style="color:#ff0000;">ERROR: Could not drop table <b>'.htmlspecialchars($table[0]).'<b>.</span><br />'; 
    4343                        } else { 
Note: See TracChangeset for help on using the changeset viewer.