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/class/xpressD3commentContent.class.php

    r616 r835  
    1111                        global $forum_id; 
    1212                         
    13                         $db =& Database::getInstance() ; 
     13                        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    1414                        $myts =& MyTextsanitizer::getInstance() ; 
    1515 
     
    8080                                } 
    8181                        } 
    82                                         $db =& Database::getInstance() ; 
     82                                        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    8383                                        $myts =& MyTextsanitizer::getInstance() ; 
    8484 
     
    181181                        $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    182182                        $blog_info = $this->get_comment_blog_info($forum_id);            
    183                         $db =& Database::getInstance() ; 
     183                        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    184184                         
    185185                        list( $count ) = $db->fetchRow( $db->query( "SELECT COUNT(*) FROM ".$blog_info['mb_table_prefix'] ."posts WHERE ID=$post_id AND comment_status ='open'" ) ) ; 
     
    209209                        $wp_full_prefix = $blog_info['mb_table_prefix']; 
    210210 
    211                         $db =& Database::getInstance() ; 
     211                        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    212212                        $myts =& MyTextsanitizer::getInstance() ; 
    213213 
     
    302302                        $d3f_prefix = $d3f_forum_dir; 
    303303                        $myts =& MyTextSanitizer::getInstance(); 
    304                         $xoopsDB =& Database::getInstance(); 
     304                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    305305 
    306306                        $wp_comments = $wp_full_prefix . 'comments'; 
     
    444444                        $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 
    445445                         
    446                         $xoopsDB =& Database::getInstance(); 
     446                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    447447                        $wp_d3forum_link = $xoopsDB->prefix($xp_prefix . '_d3forum_link'); 
    448448                         
     
    458458                 
    459459                function get_comment_blog_info($d3forum_forum_id){ 
    460                         $xoopsDB =& Database::getInstance(); 
     460                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    461461                        $xp_prefix = $wpdirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
    462462                        $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 
Note: See TracChangeset for help on using the changeset viewer.