Skip to:
Content

BuddyPress.org

Changeset 2033


Ignore:
Timestamp:
10/05/2009 06:39:08 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2032 r2033  
    167167    do_action( 'bbpress_init' );
    168168
    169     $query = new BB_Query( 'topic', 'topic_id=' . $topic_id );
     169    $query = new BB_Query( 'topic', 'topic_id=' . $topic_id . '&page=1' /* Page override so bbPress doesn't use the URI */ );
    170170
    171171    return $query->results[0];
     
    173173
    174174function bp_forums_get_topic_id_from_slug( $topic_slug ) {
    175     do_action( 'bbpress_init' );   
     175    do_action( 'bbpress_init' );
    176176    return bb_get_id_from_slug( 'topic', $topic_slug );
    177177}
Note: See TracChangeset for help on using the changeset viewer.