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/include/search.php

    r30 r257  
    1717{ 
    1818        global $xoopsDB, $myts; 
     19         
     20        require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
    1921 
    2022        $myts =& MyTextSanitizer::getInstance(); 
     
    3234        } 
    3335        if ($userid) { 
    34                 $userid = intval($userid); 
     36                $userid = xoops_uid_to_wp_uid(intval($userid)); 
    3537                $where  .= " AND (post_author=".$userid.")"; 
    3638        } 
     
    7072                $ss   = substr($date_str,17,2); 
    7173                $ret[$i]['time'] = mktime( $hh,$nn,$ss,$mm,$dd,$yyyy); 
    72                 $ret[$i]['uid'] = $myrow['post_author']; 
     74                $ret[$i]['uid'] = wp_uid_to_xoops_uid($myrow['post_author']); 
    7375//              $ret[$i]['page'] = $myts->htmlSpecialChars($myrow['post_title']); 
    7476 
Note: See TracChangeset for help on using the changeset viewer.