Changeset 129082
- Timestamp:
- 06/24/2009 03:07:25 PM (17 years ago)
- Location:
- author-avatars/trunk/lib
- Files:
-
- 2 edited
-
AuthorAvatarsForm.class.php (modified) (1 diff)
-
UserList.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
author-avatars/trunk/lib/AuthorAvatarsForm.class.php
r129076 r129082 316 316 'user_id' => __('User Id', 'author-avatars'), 317 317 ); 318 if (AA_is_bp() || function_exists('get_memberlastvisit')) {318 if (AA_is_bp()) { 319 319 $order_options['recent_activity'] = __('Recent Activity', 'author-avatars'); 320 320 } -
author-avatars/trunk/lib/UserList.class.php
r122277 r129082 512 512 * Returns the time of last activity for a given user. 513 513 * 514 * This requires that either BuddyPress or the WP-UserOnline pluginis installed.515 * If neither isavailable the function returns an empty string.514 * This requires that BuddyPress is installed. 515 * If it's not available the function returns an empty string. 516 516 * 517 517 * @param int $user_id … … 521 521 if (AA_is_bp()) { 522 522 return gmdate( 'Y-m-d H:i:s', (int)get_usermeta( $user_id, 'last_activity' ) ); 523 }524 if (function_exists('get_memberlastvisit') ) {525 return gmdate( 'Y-m-d H:i:s', (int)get_user_option( 'member_last_login', $user_id ));526 523 } 527 524 return "";
Note: See TracChangeset
for help on using the changeset viewer.