Changeset 595
- Timestamp:
- Apr 30, 2010, 3:55:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php
r590 r595 187 187 function wp_to_d3forum($forum_id = 1, $d3f_prefix = 'd3forum'){ 188 188 global $xpress_config,$xoops_db,$wpdb; 189 global $blog_id; 190 if (empty($blog_id)) $blog_id =1; 189 191 190 192 if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. '); … … 236 238 237 239 //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"); 239 241 240 242 //The comment is copied from the wordpress comment. … … 261 263 function d3forum_to_wp($forum_id = 1, $d3f_prefix = 'd3forum'){ 262 264 global $xpress_config,$xoops_db,$wpdb; 265 global $blog_id; 266 if (empty($blog_id)) $blog_id =1; 263 267 if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. '); 264 268 … … 289 293 $xoops_db->query("DROP TABLE $wp_dummy"); 290 294 //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"); 292 296 293 297 //All wp post comment count clear
Note: See TracChangeset
for help on using the changeset viewer.