XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 9, 2013, 8:47:25 AM (11 years ago)
Author:
toemon
Message:

Deprecated. 'Database::getInstance();' is deprecated since XOOPS 2.5.4 fixed #423

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/include/onupdate.php

    r814 r835  
    2121        } 
    2222 
    23         $db =& Database::getInstance() ; 
     23        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    2424        $mid = $module->getVar('mid') ; 
    2525         
     
    8282                global $xoopsModule; 
    8383                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    84                 $xoopsDB =& Database::getInstance(); 
     84                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    8585                $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 
    8686 
     
    9494                global $xoopsModule; 
    9595                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    96                 $xoopsDB =& Database::getInstance(); 
     96                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    9797                $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 
    9898 
     
    106106                global $xoopsModule; 
    107107                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    108                 $xoopsDB =& Database::getInstance(); 
     108                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    109109                $option_table = $xoopsDB->prefix($wp_prefix . '_options'); 
    110110 
     
    137137                global $xoopsModule; 
    138138                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    139                 $xoopsDB =& Database::getInstance(); 
     139                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    140140                $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 
    141141 
     
    180180function xpress_table_make($module, $mydirname) 
    181181{ 
    182         $db =& Database::getInstance() ; 
     182        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    183183        $mid = $module->getVar('mid') ; 
    184184 
     
    306306                global $xoopsModule; 
    307307                 
    308                 $xoopsDB =& Database::getInstance(); 
     308                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    309309                $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 
    310310                $db_enhanced = $xpress_prefix . $table_name; 
     
    326326function is_found_table_column($table,$column){ 
    327327                global $xoopsModule; 
    328                 $xoopsDB =& Database::getInstance(); 
     328                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    329329 
    330330                $sql = "DESCRIBE $table $column"; 
Note: See TracChangeset for help on using the changeset viewer.