XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 19, 2011, 6:47:15 PM (14 years ago)
Author:
toemon
Message:

Database::getInstance()を使わずに、global $xoopsDB を使用する。(xoops3対策)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/include/sitemap.plugin.php

    r583 r749  
    6262if(!function_exists('xpress_get_categoires_map')){ 
    6363        function xpress_get_categoires_map($blogs ,$disp_sub){ 
    64                 global $sitemap_configs; 
    65                  
    66                 $xoopsDB =& Database::getInstance(); 
     64                global $sitemap_configs,$xoopsDB; 
    6765                 
    6866                $sitemap = array(); 
     
    150148if( ! function_exists( 'get_blog_option' ) ) { 
    151149        function get_blog_option($option_table,$option_name){ 
    152                 $xoopsDB =& Database::getInstance(); 
     150                global $xoopsDB; 
    153151 
    154152                $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; 
Note: See TracChangeset for help on using the changeset viewer.