XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 8, 2009, 11:46:24 AM (15 years ago)
Author:
toemon
Message:

#143 モジュール複製時のXOOPS UID と WordPress? UID 相違による不具合

PHP Fatal error: Cannot redeclare wp_uid_to_xoops_uid()が発生
またUIDの変換が先読みしたモジュールのWordPress UIDが使われる

の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php

    r257 r261  
    458458//  The content is reflected in the D3Forum comment when there is a change in the WordPress comment.  
    459459function wp_comment_sync_to_d3forum($comment_ID = 0,$sync_mode){ 
    460         global $xpress_config,$xoops_db; 
     460        global $xpress_config,$xoops_db,$xoops_config; 
    461461         
    462462        if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. '); 
     463        $mydirname = $xoops_config->module_name; 
    463464 
    464465        $d3f_forum_id = $xpress_config->d3forum_forum_id; 
     
    494495        $modified_time = strtotime($row->comment_date); // or   $row2['comment_date_gmt'] 
    495496        require_once (get_xpress_dir_path() . 'include/general_functions.php'); 
    496         $uid =  wp_uid_to_xoops_uid($row->user_id); 
     497        $uid =  wp_uid_to_xoops_uid($row->user_id,$mydirname); 
    497498        $poster_ip = "'" . addslashes($row->comment_author_IP ). "'"; 
    498499        $modifier_ip = "'" . addslashes($row->comment_author_IP) . "'"; 
Note: See TracChangeset for help on using the changeset viewer.