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/xpress_block_render.php

    r802 r835  
    5252                        $options_string .= $val; 
    5353                } 
    54                         $xoopsDB =& Database::getInstance(); 
     54                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    5555                        $block_tbl = $xoopsDB->prefix('newblocks');      
    5656                        $module_dir = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     
    6767        function get_block_mid($mydirname) 
    6868        { 
    69                         $xoopsDB =& Database::getInstance(); 
     69                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    7070                        $modules_tbl = $xoopsDB->prefix('modules'); 
    7171 
     
    8484                 
    8585                if (is_null($wpdb)){ 
    86                         $xoopsDB =& Database::getInstance(); 
     86                        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    8787                        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    8888 
     
    312312                $xoopsModule =& $module_handler->getByDirname($mydirname); 
    313313                $mid = $xoopsModule->getVar('mid'); 
    314                 $xoopsDB =& Database::getInstance(); 
     314                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    315315                $db_config = $xoopsDB->prefix('config'); 
    316316             
Note: See TracChangeset for help on using the changeset viewer.