Changeset 257 for branches/Ver2.0/xpressme_integration_kit/include
- Timestamp:
- Jun 5, 2009, 5:43:15 PM (15 years ago)
- Location:
- branches/Ver2.0/xpressme_integration_kit/include
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.0/xpressme_integration_kit/include/data.inc.php
r37 r257 36 36 $wp_prefix = $mydirname; 37 37 } 38 38 require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 39 39 include(XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/wp-includes/version.php'); 40 40 … … 92 92 $ret[$i]['cat_name'] = $row2['cat_name']; 93 93 94 $ret[$i]['uid'] = $row1['post_author'];94 $ret[$i]['uid'] = wp_uid_to_xoops_uid($row1['post_author']); 95 95 $ret[$i]['replies'] = $row1['comment_count']; 96 96 … … 180 180 } 181 181 182 182 183 // --- function end --- 183 184 -
branches/Ver2.0/xpressme_integration_kit/include/search.php
r30 r257 17 17 { 18 18 global $xoopsDB, $myts; 19 20 require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 19 21 20 22 $myts =& MyTextSanitizer::getInstance(); … … 32 34 } 33 35 if ($userid) { 34 $userid = intval($userid);36 $userid = xoops_uid_to_wp_uid(intval($userid)); 35 37 $where .= " AND (post_author=".$userid.")"; 36 38 } … … 70 72 $ss = substr($date_str,17,2); 71 73 $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']); 73 75 // $ret[$i]['page'] = $myts->htmlSpecialChars($myrow['post_title']); 74 76
Note: See TracChangeset
for help on using the changeset viewer.