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

    r583 r749  
    99function xpress_onuninstall_base( $module , $mydirname ) 
    1010{ 
     11        global $xoopsDB; 
    1112        // transations on module uninstall 
    1213 
     
    2223        } 
    2324 
    24         $db =& Database::getInstance() ; 
    2525        $mid = $module->getVar('mid') ; 
    2626         
    2727        $xp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    2828         
    29         $xoops_prefix = $db->prefix(); 
     29        $xoops_prefix = $xoopsDB->prefix(); 
    3030 
    3131        if (empty($xoops_prefix) || empty($xp_prefix)) { 
Note: See TracChangeset for help on using the changeset viewer.