Skip to:
Content

BuddyPress.org

Changeset 1269


Ignore:
Timestamp:
03/27/2009 09:58:54 AM (16 years ago)
Author:
apeatling
Message:

Fixes #628 props burtadsit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-templatetags.php

    r1262 r1269  
    239239    global $forum_template;
    240240   
    241     $posts = bp_forums_get_posts( $forum_template->topic->topic_id );
    242     echo apply_filters( 'bp_the_topic_latest_post_excerpt', $posts[count($posts) - 1]['post_text'] );
     241    $post = bp_forums_get_post( $forum_template->topic->topic_last_post_id );
     242    echo apply_filters( 'bp_the_topic_latest_post_excerpt', $post->post_text );
    243243}
    244244
Note: See TracChangeset for help on using the changeset viewer.