XPressME Integration Kit

Trac

Changeset 595


Ignore:
Timestamp:
Apr 30, 2010, 3:55:42 PM (14 years ago)
Author:
toemon
Message:

MultiBlog時D3Forum一括インポート、エクスポートのバグ修正 Fixes#342

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php

    r590 r595  
    187187function wp_to_d3forum($forum_id = 1, $d3f_prefix = 'd3forum'){ 
    188188        global $xpress_config,$xoops_db,$wpdb; 
     189        global $blog_id; 
     190        if (empty($blog_id)) $blog_id =1; 
    189191 
    190192        if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. '); 
     
    236238         
    237239        //All the records in the wp_d3forum_link table are deleted.   
    238         $xoops_db->query("DELETE FROM $wp_d3forum_link WHERE 1"); 
     240        $xoops_db->query("DELETE FROM $wp_d3forum_link WHERE blog_id = $blog_id"); 
    239241 
    240242        //The comment is copied from the wordpress comment. 
     
    261263function d3forum_to_wp($forum_id = 1, $d3f_prefix = 'd3forum'){ 
    262264        global $xpress_config,$xoops_db,$wpdb; 
     265        global $blog_id; 
     266        if (empty($blog_id)) $blog_id =1; 
    263267        if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. '); 
    264268         
     
    289293        $xoops_db->query("DROP TABLE $wp_dummy"); 
    290294        //All the records in the wp_d3forum_link table are deleted.   
    291         $xoops_db->query("DELETE FROM $wp_d3forum_link WHERE 1"); 
     295        $xoops_db->query("DELETE FROM $wp_d3forum_link WHERE  blog_id = $blog_id"); 
    292296 
    293297        //All wp post comment count clear 
Note: See TracChangeset for help on using the changeset viewer.