Changeset 835 for branches/Ver2.4/xpressme_integration_kit/class
- Timestamp:
- Feb 9, 2013, 8:47:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/class/xpressD3commentContent.class.php
r616 r835 11 11 global $forum_id; 12 12 13 $db =& Database::getInstance() ;13 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 14 14 $myts =& MyTextsanitizer::getInstance() ; 15 15 … … 80 80 } 81 81 } 82 $db =& Database::getInstance() ;82 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 83 83 $myts =& MyTextsanitizer::getInstance() ; 84 84 … … 181 181 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 182 182 $blog_info = $this->get_comment_blog_info($forum_id); 183 $db =& Database::getInstance() ;183 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 184 184 185 185 list( $count ) = $db->fetchRow( $db->query( "SELECT COUNT(*) FROM ".$blog_info['mb_table_prefix'] ."posts WHERE ID=$post_id AND comment_status ='open'" ) ) ; … … 209 209 $wp_full_prefix = $blog_info['mb_table_prefix']; 210 210 211 $db =& Database::getInstance() ;211 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 212 212 $myts =& MyTextsanitizer::getInstance() ; 213 213 … … 302 302 $d3f_prefix = $d3f_forum_dir; 303 303 $myts =& MyTextSanitizer::getInstance(); 304 $xoopsDB =& Database::getInstance();304 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 305 305 306 306 $wp_comments = $wp_full_prefix . 'comments'; … … 444 444 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 445 445 446 $xoopsDB =& Database::getInstance();446 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 447 447 $wp_d3forum_link = $xoopsDB->prefix($xp_prefix . '_d3forum_link'); 448 448 … … 458 458 459 459 function get_comment_blog_info($d3forum_forum_id){ 460 $xoopsDB =& Database::getInstance();460 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 461 461 $xp_prefix = $wpdirname = basename( dirname( dirname( __FILE__ ) ) ) ; 462 462 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix);
Note: See TracChangeset
for help on using the changeset viewer.