XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 5, 2009, 5:43:15 PM (15 years ago)
Author:
toemon
Message:

#139 XOOPS UID と WordPress? UID 相違による不具合の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php

    r144 r257  
    198198                        $mydirname = $this->mydirname ; 
    199199                        if( preg_match( '/[^0-9a-zA-Z_-]/' , $mydirname ) ) die( 'Invalid mydirname' ) ; 
    200                                          
     200                         
    201201                        $xpress_prefix = $mydirname; 
    202202                        if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 
     
    216216                        $blog_name = $blog_row['option_value']; 
    217217                         
    218                                                  
     218                         
    219219                        // query 
    220220                        $sql = "SELECT * FROM ".$wp_post." WHERE ID=$link_id "; 
     
    329329                                $comment_content = "'" . addSlashes($d3f_row['post_text']) . "'"; 
    330330                                $comment_approved = "'" . $d3f_row['approval'] . "'"; 
    331                                 $user_ID = $d3f_row['uid']; 
     331                                require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
     332                                $user_ID = xoops_uid_to_wp_uid($d3f_row['uid']); 
    332333                                $comment_date_gmt = "'" . gmdate('Y-m-d H:i:s' , $d3f_row['post_time']) . "'"; 
    333334                                $comment_type = ''; 
Note: See TracChangeset for help on using the changeset viewer.