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

    r257 r261  
    3434        } 
    3535        if ($userid) { 
    36                 $userid = xoops_uid_to_wp_uid(intval($userid)); 
     36                $userid = xoops_uid_to_wp_uid(intval($userid),$mydirname); 
    3737                $where  .= " AND (post_author=".$userid.")"; 
    3838        } 
     
    7272                $ss   = substr($date_str,17,2); 
    7373                $ret[$i]['time'] = mktime( $hh,$nn,$ss,$mm,$dd,$yyyy); 
    74                 $ret[$i]['uid'] = wp_uid_to_xoops_uid($myrow['post_author']); 
     74                $ret[$i]['uid'] = wp_uid_to_xoops_uid($myrow['post_author'],$mydirname); 
    7575//              $ret[$i]['page'] = $myts->htmlSpecialChars($myrow['post_title']); 
    7676 
Note: See TracChangeset for help on using the changeset viewer.