Skip to:
Content

BuddyPress.org

Changeset 2195 for trunk/bp-forums.php


Ignore:
Timestamp:
12/17/2009 01:09:18 PM (17 years ago)
Author:
apeatling
Message:

Added styles for sticky and closed forum topics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2194 r2195  
    309309        do_action( 'bbpress_init' );
    310310
    311         $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => false, 'count' => true ) );
    312         return $query->count;
     311        $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => -1, 'count' => true ) );
     312        $count = $query->count;
     313        $query = null;
     314
     315        return $count;
    313316}
    314317
     
    321324                $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id;
    322325
    323         $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => false, 'count' => true ) );
    324         return $query->count;
     326        $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => -1, 'count' => true ) );
     327        $count = $query->count;
     328        $query = null;
     329
     330        return $count;
    325331}
    326332
Note: See TracChangeset for help on using the changeset viewer.