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/admin/index.php

    r736 r835  
    3232function admin_check_user_meta_prefix($is_report = false){ 
    3333        global $xoopsModule; 
    34         $xoopsDB =& Database::getInstance(); 
     34        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    3535         
    3636        $mydirname = basename(dirname(dirname(__FILE__))); 
     
    115115{ 
    116116        global $xoopsModule; 
    117         $xoopsDB =& Database::getInstance(); 
     117        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    118118         
    119119        $mydirname = basename(dirname(dirname(__FILE__))); 
     
    541541        include_once(dirname(__FILE__) . '/../include/general_functions.php'); 
    542542 
    543         $xoopsDB =& Database::getInstance(); 
     543        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    544544         
    545545        $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 
     
    614614{ 
    615615        global $xoopsModule; 
    616         $xoopsDB =& Database::getInstance(); 
     616        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    617617        $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 
    618618        $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 
Note: See TracChangeset for help on using the changeset viewer.