Changeset 2533 for trunk/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 02/02/2010 12:40:49 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r2488 r2533 93 93 } 94 94 95 /* Fetch extra information for topics, so we don't have to query inside the loop */ 96 $this->topics = bp_forums_get_topic_extras( &$this->topics ); 97 95 98 $this->pag_links = paginate_links( array( 96 99 'base' => add_query_arg( array( 'p' => '%#%', 'n' => $this->pag_num ) ), … … 348 351 global $forum_template; 349 352 350 if ( !$ name = bp_core_get_userlink( $forum_template->topic->topic_last_poster) )353 if ( !$domain = bp_core_get_user_domain( $forum_template->topic->topic_last_poster, $forum_template->topic->topic_last_poster_nicename, $forum_template->topic->topic_last_poster_login ) ) 351 354 return __( 'Deleted User', 'buddypress' ); 352 355 353 return apply_filters( 'bp_get_the_topic_last_poster_name', $name);356 return apply_filters( 'bp_get_the_topic_last_poster_name', '<a href="' . $domain . '">' . $forum_template->topic->topic_last_poster_displayname . '</a>' ); 354 357 } 355 358 … … 387 390 extract( $r, EXTR_SKIP ); 388 391 389 return apply_filters( 'bp_get_the_topic_last_poster_avatar', bp_core_fetch_avatar( array( ' item_id' => $forum_template->topic->topic_last_poster, 'type' => $type, 'width' => $width, 'height' => $height ) ) );392 return apply_filters( 'bp_get_the_topic_last_poster_avatar', bp_core_fetch_avatar( array( 'email' => $forum_template->topic->topic_last_poster_email, 'item_id' => $forum_template->topic->topic_last_poster, 'type' => $type, 'width' => $width, 'height' => $height ) ) ); 390 393 } 391 394
Note: See TracChangeset
for help on using the changeset viewer.