XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 9, 2013, 8:47:25 AM (12 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/sitemap.plugin.php

    r583 r835  
    6464                global $sitemap_configs; 
    6565                 
    66                 $xoopsDB =& Database::getInstance(); 
     66                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    6767                 
    6868                $sitemap = array(); 
     
    150150if( ! function_exists( 'get_blog_option' ) ) { 
    151151        function get_blog_option($option_table,$option_name){ 
    152                 $xoopsDB =& Database::getInstance(); 
     152                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    153153 
    154154                $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; 
Note: See TracChangeset for help on using the changeset viewer.